Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 606 Bytes

File metadata and controls

28 lines (21 loc) · 606 Bytes

write a javascript engine in rust

Because a full implementation is too difficult, I start up this is project with some goals that are easy to implement but still cover all the important techniques.

goals

  • buid in rust
  • a subset of javascript grammar

usage

cargo run path_of_js_file.js

task board

hand written lexer

  • a basic lexer
  • functions to check identifier, especially unicode chars and sequence
  • handle string literal
  • opt the get postion method
  • numeric literal
  • refactoring

hand written parser(top-down)

  • basis of parser and AST