Giter Club home page Giter Club logo

neon-sandbox's Introduction

๐Ÿ”† Neon Lang ๐ŸŸก

v3.0.1-mod

Deno update has been reverted. Deno was not working out an is generally slower.

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. Execute node run.js [file you want to run]

๐Ÿ“œ Changelog ๐Ÿ”ง

v3.0.1-mod

  • Added modulus (%) operator.

v3.0.1-env

  • Added more functionality to the getfenv function

v3.0.1

  • 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.

โš“ Abandoned ๐Ÿšง

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

๐Ÿ“ƒ Todo ๐Ÿ’น

  • Complete the REPL for the Deno version.
  • Figure out issues with the tests

๐Ÿ Finished ๐Ÿ”š

  • 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)

๐Ÿ˜Ž Examples ๐Ÿงช

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

neon-sandbox's People

Contributors

battledash-2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.