I'm now learning ANTLR4 for ahk: abstract syntax tree, parser #34
Replies: 2 comments
-
Nice! AST parsing is definitely the better way to format. I want to prioritize automated tests (and other dev QoL improvements) before I rewrite the formatter, but this is a great start! |
Beta Was this translation helpful? Give feedback.
-
they say any serious parser is hand written, I guess it's the most flexible. And I also saw https://insights.stackoverflow.com/survey/2020#technology-most-loved-dreaded-and-wanted-languages-loved coming from ahk, I don't like javascript(async is hard), javascript doesn't have easy string manipulation like python |
Beta Was this translation helpful? Give feedback.
-
I will be using this as reference :D
https://github.com/antlr/grammars-v4/blob/master/javascript/javascript/JavaScriptParser.g4
I hope using this will solve the regex problems
Beta Was this translation helpful? Give feedback.
All reactions