GithubHelp home page GithubHelp logo

jdm / js.rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tombebbington/js.rs

0.0 3.0 2.0 1.04 MB

A Javascript parser and interpreter written in Rust

Home Page: http://www.rust-ci.org/TopHattedCoder/rust_js/doc/script/

License: MIT License

js.rs's Introduction

Build Status This is a Javascript lexer, parser and interpreter written in Rust. Currently, it has support for some of the language.

Documentation

View here

Supported language features

  • Functions(partial, return last expression)
  • Switch blocks (partial, ignore breaks)
  • If blocks
  • While blocks
  • Object declarations
  • Array declarations
  • Strings
  • Numbers

Supported APIs

  • Error (partial)
  • Math
  • Number
  • JSON
  • Console
  • URI decoding / encoding (doesn't use JS rules)

Contributing

If you want to contribute just file a pull request with your changes. If it passes travis and is reasonably clean and justifiable, it will be merged. Look at the lints specified in src/lib.rs for coding guidelines.

Building

To build this project, clone it then run make all in the root

Running

  • To run the test suite, run target/tests from the project root.
  • To run the interactive (REPL) interpreter, run target/interactive from the project root

js.rs's People

Contributors

tombebbington avatar tomducoin avatar

Watchers

Josh Matthews avatar James Cloos avatar  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.