4 ms·
I think he needs to update his grammar.[0] The definition of program does not allow for anything but definitions (i.e. declarations), except in blocks (see com
by Svip 11y ago
I think he needs to update his grammar.[0] The definition of program does not allow for anything but definitions (i.e. declarations), except in blocks (see compound-expression).
So his examples in his tutorials[1] do not conform to the grammar described, e.g. conditional expressions.
[0] https://www.vttoth.com/CMS/index.php/projects/14-w-compiler/51-w-syntax-specifications https://www.vttoth.com/CMS/index.php/projects/14-w-compiler/...
[1] https://www.vttoth.com/CMS/index.php/projects/14-w-compiler/50-w-a-brief-tutorial https://www.vttoth.com/CMS/index.php/projects/14-w-compiler/...