Fixing grammar indentation to be consistent throughout file.

This commit is contained in:
Clint Herron 2024-06-21 23:00:31 -04:00
parent 3bdf7c3021
commit 5d15dc832e

View file

@ -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]+)""";