Simplify String rule in parser (#2805)

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.
This commit is contained in:
Emanuele Torre authored and GitHub committed 2023-08-04 08:21:25 +09:00
1 parent d8327a90b8
commit dcaf701ef6
2 files changed
+698 -705

No files matched your search

Generated
+687 -694
View File
File diff suppressed because it is too large. Load diff