Easy Simple Parser, that only requires a Grammar JSON to output an AST.
APACHE-2.0 License
Another parser, but wait! it might be easy to use. The idea is that there are certain limits, that limit the complexity. Perfect for parsing your own DSL or even an existing language, which requires only one Grammar JSON file to generate an AST.
buildContentTree
method and receive an object that adheres to the typings created in step 2.A language always starts with a grammar. This grammar contains all the concepts (rules) and how they can be used in a text.
By default, a certain character set is used to distinguish words from numbers and allowed characters from non-recognised ones. Most probably only wordChards will be overridden to allow maybe $
and -
.
A rule is a concept in the grammar. This concept consist of certain parts, of which some might be optional:
... todo