2.2.0 • Published 4 years ago

lngr v2.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

lngr

Actions Status

This library provides functions for lexing and parsing a grammar based on a definition file (see sample_grammar.json).

Currently a lexer and parser are functional. The parser supports rules that reference other rules and tokens. The basic syntax for rules is rules or tokens separated by spaces.

For parsing, to specify one token/rule or another, use '|' like OPERATION INTEGER|IDENTIFIER INTEGER|IDENTIFIER. To specify optional, one-or-more, or zero-or-more of a token/rule (or a list of possible tokens/rules), use '?', '+', '' and respectively like OPERATION (INTEGER|IDENTIFIER)?, OPERATION (INTEGER|IDENTIFIER)+, and `OPERATION (INTEGER|IDENTIFIER)`.

2.2.0

4 years ago

2.1.0

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago

0.5.0

5 years ago