Talk:Compiler/Verifying syntax

From Rosetta Code
Revision as of 19:09, 3 January 2020 by Wherrera (talk | contribs)

Incorrect BNF

The BNF given does not permit = to be directly followed by not. Go/Julia/Perl all get that wrong.
The Go output also claims that "g not = h" is valid, whereas Perl/Julia and now Phix call that invalid. --Pete Lomax (talk) 18:57, 3 January 2020 (UTC)

I may not understand the specification given for BNF syntax. Doesn't the rule:

expr_level_4 = ["not"] expr_level_5 [('=' | '<') expr_level_5] ;

mean any expr_level_5 expression can be preceded by not? --Wherrera (talk) 19:09, 3 January 2020 (UTC)