Currently the PEG generator treats any multi-character strings as regexps. That's probably not performant for the simple cases (for instance ,@) and kinda inconvenient for the REPL use-cases (known command names). Could use an explicit (rx ...) combinator that takes a string and checks if the regexp represented by that string matches the input:
Currently the PEG generator treats any multi-character strings as regexps. That's probably not performant for the simple cases (for instance
,@
) and kinda inconvenient for the REPL use-cases (known command names). Could use an explicit(rx ...)
combinator that takes a string and checks if the regexp represented by that string matches the input: