Skip to content

hangbale/metal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

write a javascript engine in rust - 用rust实现一个javascript引擎

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages