Re:CLI tools hidden in the Python standard library
by cricalix on Thursday June 29, 2023 @09:38AM
(#36520213)
Curious cat - had you considered using Antlr4 and a Python visitor/listener? (Were you aware of antlr?). Depending what you're trying to do with a regex tokenizer, it might be suitable.
[ Parent
| on HN ]
Re:CLI tools hidden in the Python standard library
by anitil on Thursday June 29, 2023 @08:48PM
(#36529031)
It was more just for fun than anything else. I was more interested in the recursive descent parser so the tokenizer was just a step along the way.
I've played with Antlr but never really vibed with it to be honest (and it was years ago)