aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2022-12-29 07:22:35 +0100
committerVeikka Tuominen <git@vexu.eu>2022-12-30 17:11:59 +0200
commitf8f1c6ac06636d816e5dff205d6713a337df387d (patch)
tree567433e6e3321862260db5b610c33f87788b1f80 /src/Module.zig
parent4b5fc5239c37fa3f49965188256a781c7b1277a3 (diff)
downloadzig-f8f1c6ac06636d816e5dff205d6713a337df387d.tar.gz
zig-f8f1c6ac06636d816e5dff205d6713a337df387d.zip
parser: ensure the documented grammar matches grammar.y
Move the parsing of Root from the parse function to the Parser.parseRoot method. Add an empty line between each rule, for consistency with grammar.y. Ensure that normal doc-comments are always on the top, for consistency. Add extract-grammar.zig to the tools directory; it is used to extract the PEG grammar from parse.zig, so that it can be compared with grammar.y.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions