![]() |
|< 1 2 >| | ![]() |
16 entries, 2 pages |
QuoteNein, es gibt kein formales Syntaxdiagramm wie BNF, aber Sie sind herzlich eingeladen, sich die Datei perly.y im Perl-Quellbaum anzusehen, die die von Perl verwendete yacc&â(1)-Grammatik enthält. Wir raten Ihnen davon ab, sich den Lexer anzusehen, von dem bekannt ist, daà er bei Laborratten zu FreÃstörungen geführt hat.
QuoteCan I get a BNF/yacc/RE for the Perl language?
There is no BNF, but you can paw your way through the yacc grammar in perly.y in the source distribution if you're particularly brave. The grammar relies on very smart tokenizing code, so be prepared to venture into toke.c as well.
In the words of Chaim Frenkel: "Perl's grammar can not be reduced to BNF. The work of parsing perl is distributed between yacc, the lexer, smoke and mirrors."
![]() |
|< 1 2 >| | ![]() |
16 entries, 2 pages |