Skip to content

Commit

Permalink
Simplify String rule in parser
Browse files Browse the repository at this point in the history
Use a StringStart component that is either FORMAT QQSTRING_START or
QQSTRING_START instead of having two similar rules for String.

This is simpler and avoids having to use an untyped mid-rule action
component to copy FORMAT at the top of the stack before QQString, and
having to use jv_free($<literal>3) instead of jv_free($1) just to make
bison not complain about the "unused" mid-rule component.
  • Loading branch information
emanuele6 committed Aug 1, 2023
1 parent 90a6b2d commit 7c6dd9a
Show file tree
Hide file tree
Showing 2 changed files with 687 additions and 694 deletions.
Loading

0 comments on commit 7c6dd9a

Please sign in to comment.