Coder Social home page Coder Social logo

jakescript's Introduction

JakeScript

CI License

A work-in-progress JavaScript lexer, parser, and interpreter. Written in Rust ๐Ÿฆ€ for fun and learning.

Usage

cargo build --release --workspace

./target/release/jakescript-cli  --eval                      <source-path>  # Evaluate a file
./target/release/jakescript-cli  --lex                       <source-path>  # Lex (tokenise) a file
./target/release/jakescript-cli  --parse  [--json | --yaml]  <source-path>  # Parse a file and output as JSON or YAML
./target/release/jakescript-cli  --repl                                     # Enter an interactive REPL

Crates

  • ๐Ÿ•ฎ jakescript The core of the project. Contains code for the lexer, parser, interpreter, and most of the tests.
  • โ–ท jakescript-cli Command line interface with a REPL. Can also run the lexer, parser, and interpreter on a file.

Tests

Run all tests:

cargo test --workspace

Run the main integration test on its own, which evaluates each JavaScript file in the tests-js directory:

cargo test --package jakescript --test js_tests -- --nocapture

jakescript's People

Contributors

jakemarsden avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

adriandsg m561247

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.