Closed jsm174 closed 4 years ago
This PR is related to https://github.com/lys-lang/node-ebnf/issues/17 + https://github.com/lys-lang/node-ebnf/issues/20. It adds support for an ignoreCase=true attribute for StringLiterals.
ignoreCase=true
Keyword ::= 'And' | 'Or'
generates the following regexps:
\A\, \n\, \d\ and \O\, \r\
\A\, \n\, \d\
\O\, \r\
Keyword ::= 'And' | 'Or' {ignoreCase=true}
\[Aa]\, \[Nn]\, \[Dd]\ and \[Oo]\, \[Rr]\
\[Aa]\, \[Nn]\, \[Dd]\
\[Oo]\, \[Rr]\
Thanks!
Awesome. Will this be ebnf@1.7.2?
ebnf@1.7.2
ebnf@1.7.3
This PR is related to https://github.com/lys-lang/node-ebnf/issues/17 + https://github.com/lys-lang/node-ebnf/issues/20. It adds support for an
ignoreCase=true
attribute for StringLiterals.Keyword ::= 'And' | 'Or'
generates the following regexps:
\A\, \n\, \d\
and\O\, \r\
Keyword ::= 'And' | 'Or' {ignoreCase=true}
generates the following regexps:
\[Aa]\, \[Nn]\, \[Dd]\
and\[Oo]\, \[Rr]\