Skip to content
/ astgen Public

AST generator, built with python for parse table construction and Rust for lexer & compiler.

License

Notifications You must be signed in to change notification settings

abghim/astgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astgen

AST generator, built with python for parse table construction and Rust for lexer & compiler.

astgen accepts a JSON-style dialect of BNF context-free grammar and generates rust source code * rustc compiled binary that constructs an abstract syntax tree from a target source.

Feature Notes

  • accepts python dict, not JSON, in tablegen.py
  • boilerplate & hard-coded parse tables in rust source

To-do

  • parse logic
  • AST construction while parsing
  • rust lexer

About

AST generator, built with python for parse table construction and Rust for lexer & compiler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published