我如何防止结构规则中的“,”字面量被解析为 Instaparse 的以下 EBNF 语法中的运算符?
语法:
structure = atom <"("> term ("," term)* <")">
term = atom | number | structure | variable | "(" term ")" | term operator term
operator = "," | ";" | "\\=" | "=="
我如何防止结构规则中的“,”字面量被解析为 Instaparse 的以下 EBNF 语法中的运算符?
语法:
structure = atom <"("> term ("," term)* <")">
term = atom | number | structure | variable | "(" term ")" | term operator term
operator = "," | ";" | "\\=" | "=="