anybody knows how to recognize a pattern in Tatsu, in a case-insensitive way? The documentation says to: "Use (?i) in patterns that should ignore case." but I did not actually figure out how to use (?i) in my rule:
graph
=
[ STRICT ] ( GRAPH | DIGRAPH ) [graph_name:id] '{'
{ rule_list:rule }*
'}';
STRICT
= 'strict'
;
In practice, I've to recognize the word 'strict', regardless of its case.
Thanks Tom
Yes thanks! As rici suggested I easily solved writing:
STRICT
= ?'(?i)strict'
;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.