Skip to content

Commit

Permalink
Escape whitespace directive correctly in lalr_calculator_example.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Baker committed Jul 16, 2023
1 parent eafaf02 commit 6ab3cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lalr/lalr_examples/lalr_calculator_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void lalr_calculator_example()
" %left '+' '-'; \n"
" %left '*' '/'; \n"
" %none integer; \n"
" %whitespace \"[ \t\r\n]*\"; \n"
" %whitespace \"[ \\t\\r\\n]*\"; \n"
" expr: \n"
" expr '+' expr [add] | \n"
" expr '-' expr [subtract] | \n"
Expand Down

0 comments on commit 6ab3cd0

Please sign in to comment.