16 releases (7 breaking)
| 0.8.0 | Jul 27, 2021 |
|---|---|
| 0.6.2 | Jan 7, 2021 |
| 0.6.0 | Dec 27, 2020 |
#4 in #sky-spark
67 downloads per month
Used in axon_parser
25KB
667 lines
Axon parseAst Parser
Parses the output of SkySpark's parseAst function.
Usage
- Get the string output of SkySpark's
parseAstfunction.- For example, run
read(func and name == "yourFunction")->src.parseAst().toAxonCode().
- For example, run
- Use this library's
parsefunction on that string.
Why parse the output of parseAst, instead of parsing Axon itself?
- It's substantially more involved to parse Axon, instead of
parseAst's output.- We can parse
parseAstoutput in under 200 lines of LALRPOP grammar.
- We can parse
- Axon appears to be an ambiguous language to parse (at least LALRPOP was claiming it was ambiguous).
Dependencies
~3.5–6.5MB
~105K SLoC