Fixing grammar indentation to be consistent throughout file.
This commit is contained in:
parent
3bdf7c3021
commit
5d15dc832e
1 changed files with 153 additions and 152 deletions
|
@ -428,7 +428,8 @@ static void test_quantifiers() {
|
||||||
static void test_failure_missing_root() {
|
static void test_failure_missing_root() {
|
||||||
fprintf(stderr, "⚫ Testing missing root node:\n");
|
fprintf(stderr, "⚫ Testing missing root node:\n");
|
||||||
// Test case for a grammar that is missing a root rule
|
// Test case for a grammar that is missing a root rule
|
||||||
const std::string grammar_str = R"""(rot ::= expr
|
const std::string grammar_str = R"""(
|
||||||
|
rot ::= expr
|
||||||
expr ::= term ("+" term)*
|
expr ::= term ("+" term)*
|
||||||
term ::= number
|
term ::= number
|
||||||
number ::= [0-9]+)""";
|
number ::= [0-9]+)""";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue