axon_parseast_parser

Crates.ioaxon_parseast_parser
lib.rsaxon_parseast_parser
version0.8.0
sourcesrc
created_at2020-12-19 05:20:02.493481
updated_at2021-07-27 03:15:12.857479
descriptionA library to parse the output of SkySpark's parseAst function.
homepagehttps://github.com/a-mackay/axon_parseast_parser
repositoryhttps://github.com/a-mackay/axon_parseast_parser
max_upload_size
id324519
size58,250
... (a-mackay)

documentation

https://docs.rs/axon_parseast_parser

README

Axon parseAst Parser

Parses the output of SkySpark's parseAst function.

Usage

  1. Get the string output of SkySpark's parseAst function.
    • For example, run read(func and name == "yourFunction")->src.parseAst().toAxonCode().
  2. Use this library's parse function on that string.

Why parse the output of parseAst, instead of parsing Axon itself?

  1. It's substantially more involved to parse Axon, instead of parseAst's output.
    • We can parse parseAst output in under 200 lines of LALRPOP grammar.
  2. Axon appears to be an ambiguous language to parse (at least LALRPOP was claiming it was ambiguous).
Commit count: 42

cargo fmt