Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schwalbe-t/vilm
A simple and consistent programming language, but not to a point where it's annoying.
https://github.com/schwalbe-t/vilm
Last synced: about 22 hours ago
JSON representation
A simple and consistent programming language, but not to a point where it's annoying.
- Host: GitHub
- URL: https://github.com/schwalbe-t/vilm
- Owner: schwalbe-t
- License: mit
- Created: 2023-08-16T11:19:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-26T18:59:59.000Z (over 1 year ago)
- Last Synced: 2025-01-21T07:43:29.300Z (about 22 hours ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vilm
A simple and consistent programming language, but not to a point where it's annoying.```
use data (list:push)func fib(n) (
var r ()
var a 0
var b 1
for i range 0 n (
var c {a + b}
list:push r c
set a b
set b c
)
return r
)display fib 10
```### Using in the browser
To use Vilm in the browser, simply import `vilm.js` into your web page. In another script, you can then create a new instance of Vilm and tell it to execute a list of files:
```js
const vilm = new Vilm();
vilm.eval(`
display "Hello, world!"
`, "test.vl");
vilm.evalFiles("foo.vl", "bar.vl");
```### Using with Node.js
To use Vilm with node, simply `require("vilm.js")`, which will result in the `Vilm`-class being returned, which can then simply be saved in a constant:
```js
const Vilm = require("vilm.js");
const vilm = new Vilm();
vilm.eval(`
display "Hello, world!"
`, "test.vl");
```# Documentation and Playground
Documentation and a browser playground is available at [https://vilmlang.netlify.app/](https://vilmlang.netlify.app/).