2 stable releases
| 1.0.1 | Dec 3, 2019 |
|---|---|
| 1.0.0 | Sep 9, 2019 |
#932 in Template engine
32KB
980 lines
ASDL parser and CLI for code generation.
ASDL describes the abstract syntax of compiler intermediate representations and other tree-like data structures. Just as the lexical and syntactic structures of programming languages are described with regular expressions and context free grammars, ASDL provides a concise notation for describing the abstract syntax of programming languages. Tools can convert ASDL descriptions into the appropriate data-structure definitions and functions to convert the data-structures to or it easier to build compiler components that interoperate.
You can read about Asdl in this paper
Functionality is provided in two crates:
asdl- parser and api ready to use in code generation. Best suited for code generation withrustcode. Withquotafor example.asdl-teramodel designed for template processing engines liketeraand a CLI for code generation withteratemplate engine.
Dependencies
~1MB
~16K SLoC