- First, run
git clone https://github.com/Battledash-2/Neon
to clone the source code - Second, create a Javascript file named
run.js
- In the file, require the lexer, parser and interpreter in
/src
. - To initiate, use
new Interpreter().eval(new Parser(new Lexer('ANY CODE HERE')));
- Clone the source code (like shown above)
- Execute
node run.js [file you want to run]
- Added modulus (
%
) operator.
- Added more functionality to the
getfenv
function
- Updated to v3.0.1 (from v3.0.0)
- Added
append
function to the fs module. - Added
\t
operator for strings. - Added
FSSpam
example which is a performance test.
(may come back in the future)
- Proxies (like the Javascript
new Proxy(<OBJECT>, <PROXY>))
and the Luasetmetatable(<OBJECT>, <PROXY>)
) - ObjectPrototype.defineProperty (
<OBJECT>.defineProperty(<NAME>, <FAKE-ISH PROXY: VALUE>)
)
- Add support for pointers by v3.0.5
- Add modulus/remainder operator (
%
) - Add more functionality to the
getfenv
function. - (REVERTED) UPDATED TO DENO!
- OOP support (still missing
extends
keyword) (Classes) - (...initial) (objects, array, negated sets, if statements, for/while, variables, scopes)
- Number interpreter with a lexer and parser (
./examples/NumberInterpreter
) - Mini-language / small lexer & parser-less language (
./examples/MiniLang
) - Lambda functions (
./examples/LambdaFunctions
) - File system spam (
./examples/FSSpam
) - Example of import system (
./examples/Imports
)