Parse EBNF: Difference between revisions
Content added Content deleted
(Parsing EBNF pattern) |
m (Fix incompetent marking of solution that resulted in wrong language community being notified) |
||
Line 134: | Line 134: | ||
=={{header|Tcl}}== |
=={{header|Tcl}}== |
||
{{improve| |
{{improve|Tcl|This is not an EBNF parser. It never uses EBNF. It is a calculator parser, but there is already a calculator parser at [[Arithmetic evaluation#Tcl]]. One should adjust this solution to parse the EBNF language, not the calculator language.}} |
||
Demonstration lexer and parser. Note that this parser supports parenthesized expressions, making the grammar recursive. |
Demonstration lexer and parser. Note that this parser supports parenthesized expressions, making the grammar recursive. |