Skip to content

Commit

Permalink
fix: expose semicolons, remove generation warnings
Browse files Browse the repository at this point in the history
This commit exposes semicolon terminators as anonymous nodes that can be
queried, and removes the following warnings upon generating the parser:

Warning: rule _pair_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
Warning: rule _lazy_or_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
Warning: rule _lazy_and_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
Warning: rule _pipe_right_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
Warning: rule _pipe_left_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
Warning: rule _rational_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
Warning: rule _tilde_operator is just a `seq` or `choice` rule with a single element. This is unnecessary.
  • Loading branch information
ribru17 committed Nov 16, 2024
1 parent 3f51e8e commit 453b91e
Show file tree
Hide file tree
Showing 3 changed files with 1,295,478 additions and 1,223,837 deletions.
4 changes: 2 additions & 2 deletions grammar.js
82 changes: 31 additions & 51 deletions src/grammar.json
2,519,229 changes: 1,295,445 additions & 1,223,784 deletions src/parser.c

0 comments on commit 453b91e

Please sign in to comment.