arnoldc.js is a compiler from ArnoldC language to Javascript, with support for source maps.
You can read about the original project here : https://github.com/lhartikk/ArnoldC
Also available as:
Install: npm install arnoldc.js --global
Run: arnoldc.js {{file.arnoldc}}
It will produce two files:
- Compiled javascript:
file.arnoldc.js
- Source Map javascript:
file.arnoldc.js.map
The source map contents is inlined into the map using sourcesContent
, so you don't need to host your .arnoldc files.
It uses Jison to parse the file and to produce a simple AST of the code.
Then, it uses functions defined in the file Transpiler.js
and ast.js
to produce the corresponding Javascript code.
Source maps provided by Mozilla's source-maps library.
- Non void methods
- Return statement
- Assign variable from method call
- Read integer
It's coming soon !