Browse Source

readme updates

pull/5/head
Jason Williams 6 years ago
parent
commit
e99eac8af8
  1. 6
      README.md
  2. 1
      src/bin/bin.rs
  3. 4
      tests/js/defineVar.js

6
README.md

@ -6,3 +6,9 @@ This is an experimental Javascript lexer, parser and Just-in-Time compiler writt
This project is an attempted rewrite of Bebbington's js.rs and will look very, very similar to it for a while. As that repo has not been touched in a long time a lot of the Rust is out-of-date so a lot of things are probably in error by today's standards
#### Usage
* Checkout this project
* Build `cargo build`
* `cargo run`
* You can make changes to tests/js/defineVar.js and build again

1
src/bin/bin.rs

@ -12,7 +12,6 @@ pub fn main() {
// Setup executor
let expr = Parser::new(tokens).parse_all().unwrap();
println!("{}", expr);
let mut engine: Interpreter = Executor::new();
let result = engine.run(&expr);

4
tests/js/defineVar.js

@ -1,2 +1,2 @@
var b = 'Jason';
typeof b;
var b = [1, 2, 3];
b[1];

Loading…
Cancel
Save