casey / casey/just

Consider converting GRAMMAR.md into test

Open
#716 1 comment 0 reactions 0 assignees View on GitHub
development
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

I'd like to convert the reference grammar in GRAMMAR.md into something that can actually be parsed by an LR(k) parser-generator, so that the grammar can be checked for ambiguity.

I like the hand-written parser, so I'm not saying that Just should actually replace it's parser with a generated one, just that we should add a test that ensure that the language stays LR(k) using the grammar.

I think the best choice here is probably https://github.com/lalrpop/lalrpop.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.