Crates.io | axon_parser |
lib.rs | axon_parser |
version | 0.8.2 |
source | src |
created_at | 2020-12-23 06:31:44.887025 |
updated_at | 2021-10-04 22:58:50.968483 |
description | Parses a representation of SkySpark's Axon language into an AST |
homepage | https://github.com/a-mackay/axon_parser |
repository | https://github.com/a-mackay/axon_parser |
max_upload_size | |
id | 326400 |
size | 215,637 |
Parses the output of SkySpark's toAxonCode(parseAst( ... ))
into an abstract syntax tree.
The code formatting is basic and opinionated, and strays from idiomatic Axon code to keep the implementation relatively simple. The configuration is currently limited to the type and size of indentation used.
For example, Axon like:
( param1 ,param2:"arg2")=>"hello world"
will become:
(param1, param2: "arg2") => do
"hello world"
end
It may not produce the prettiest Axon code, plus the formatted output has not been extensively tested for correctness.
See the documentation for the parse_func
and parse_func_to_formatted_lines
functions.