Closed coalooball closed 10 months ago
The code using DELIMITER = /[^\w\s]+/ ;
has same error.
I found an alternative solution:
DELIMITER = /[^\w\s]\s*/ ;
Rule with names starting with a capital letter do not advance over white space before beginning to parse, thus the latter at least is expected behavior. See https://tatsu.readthedocs.io/en/stable/syntax.html#rules
Rule with names starting with a capital letter do not advance over white space before beginning to parse, thus the latter at least is expected behavior. See https://tatsu.readthedocs.io/en/stable/syntax.html#rules
It works. I have changed all the rule names to lowercase, and it can now be parsed. Thank you very much!
Hi, I found that "Positive join" does not ignore whitespace characters when parsing text of list type. I carefully reviewed the official documentation, but did not find a further solution.
THE EBNF:
The generating command:
The testing Python snippet:
The OUTPUT