3 ms·
This shows using PCRE to recognize text following a context-free grammar (and some context-sensitive ones). Can you make it produce a parse tree too?
by abecedarius 14y ago
This shows using PCRE to recognize text following a context-free grammar (and some context-sensitive ones). Can you make it produce a parse tree too?
- dllthomas 14y agoHe noted that that's difficult, using just the PCRE library in PHP. In perl or C, where you can make the regex engine fire arbitrary code when certain things are matched it becomes much more possible (but still probably not an approach you really want to take).