3 ms·
(4) -> I would say that the lack of regex use is a plus. Yes I use them all the time. For anything complicated I'll just ask ChatGPT to make it. And of course,
by mannyv 1y ago
(4) -> I would say that the lack of regex use is a plus. Yes I use them all the time. For anything complicated I'll just ask ChatGPT to make it. And of course, are regexs all the same across everything?
(5) -> Once you get it you get it.
Every language specification is odd in its own special way. In any case I haven't really seen BNF/EBNF used in the last few years, so this is probably a moot discussion.
- alfiedotwtf 1y agoHow are the grammars you see on a regular basis specified if not by BNF?
- mdaniel 1y agoI'm not the person you asked but I believe there are two broad classes of answers: hand rolled parsers and PEG grammars e.g. https://github.com/llvm/llvm-project/blob/llvmorg-20.1.5/clang/lib/Parse/Parser.cpp#L54 https://github.com/llvm/llvm-project/blob/llvmorg-20.1.5/cla... and https://github.com/python/cpython/blob/v3.13.3/Grammar/python.gram https://github.com/python/cpython/blob/v3.13.3/Grammar/pytho...
- alfiedotwtf 1y agoHand rolled and PEG are nice implementation wise, but to think about the grammar itself and needing to debug it not so much. Maybe it's a personal thing, but I'd rather something textual that generated a parser than have to hand roll rec decent etc.