parser-lr 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -9
- package/bin/parser-lr.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# parser-lr
|
|
2
2
|
|
|
3
|
-
Shift-reduce parser for EBNF grammars.
|
|
3
|
+
Shift-reduce parser for EBNF grammars. Describe your language with a `.grammar` file, build an LR parse table, then lex and parse source into a concrete syntax tree or AST, for execution or code generation.
|
|
4
4
|
|
|
5
5
|
Grammar file syntax is documented in [`docs/grammar.md`](docs/grammar.md).
|
|
6
6
|
|
|
@@ -103,11 +103,3 @@ const ast = context.parse(context.lex(source));
|
|
|
103
103
|
## Example grammars
|
|
104
104
|
|
|
105
105
|
Sample `.grammar` files ship in [`grammars/`](grammars/) (`calc.grammar`, `lisp.grammar`, `6502.grammar`, and the meta-grammar `grammar.grammar`). Use them as templates when writing your own language.
|
|
106
|
-
|
|
107
|
-
## Developing this package
|
|
108
|
-
|
|
109
|
-
Contributors who change the meta-grammar should regenerate the bootstrapped table:
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
npm run bootstrap
|
|
113
|
-
```
|
package/bin/parser-lr.js
CHANGED