Parse EBNF: Difference between revisions

Content added Content deleted
m (wordliness)
Line 180:
 
=={{header|Modula-2}}==
<lang Modula-2modula2>MODULE EBNF;
MODULE EBNF;
 
FROM ASCII IMPORT EOL;
Line 271 ⟶ 270:
END EBNF.</lang>
And the source for the EBNF scanner. I hope you like nested procedures.
<lang modula2>IMPLEMENTATION MODULE EBNFScanner;
<lang Modula-2>
IMPLEMENTATION MODULE EBNFScanner;
 
FROM ASCII IMPORT LF;
Line 440 ⟶ 438:
ch := ' '
END EBNFScanner.</lang>
 
 
=={{header|PicoLisp}}==