Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Battledash-2/Neon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔆 Neon Lang 🟡

V2.1.2

What is Neon? (ℹ)

Neon is a public and open source language (under the MIT license ©).

📩 Installation 📉

To install Neon:

  1. First, run git clone https://github.com/Battledash-2/Neon to clone the source code
  2. Second, create a Javascript file named run.js
  3. In the file, require the lexer, parser and interpreter in /src.
  4. To initiate, use new Interpreter().eval(new Parser(new Lexer('ANY CODE HERE')));

Alternatively:

  1. Clone the source code (like shown above)
  2. Run node . <MODE: [-f: File, -c: Console, Default: -c]> <MODE==FILE?FNAME: [-t: Show Exec Time]>

📃 Todo 💹

  • Proxies (like the Javascript new Proxy(<OBJECT>, <PROXY>)) and the Lua setmetatable(<OBJECT>, <PROXY>))
  • ObjectPrototype.defineProperty (<OBJECT>.defineProperty(<NAME>, <FAKE-ISH PROXY: VALUE>))

🏁 Finished 🔚

  • OOP support (still missing extends keyword) (Classes)
  • (...initial) (objects, array, negated sets, if statements, for/while, variables, scopes)

😎 Examples 🧪

  • Number interpreter with a lexer and parser (./examples/NumberInterpreter)
  • Mini-language / small lexer & parser-less language (./examples/MiniLang)
  • Lambda functions (./examples/LambdaFunctions)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published