monic part 5: writing C programs on the calculator
|
02-12-2021, 11:01 PM
(This post was last modified: 02-17-2021 10:52 PM by Jonathan Busby.)
Post: #11
|
|||
|
|||
RE: monic part 5: writing C programs on the calculator
Well, I found more absent-minded stupid associativity errors in the EBNF grammar for C- . Here is the corrected grammar :
Code: program = declaration-list ; Sorry for any inconvenience. Regards, Jonathan NOTE #1 : I had also accidentally left out some non-superfluous non-terminals. Also, the "C-" assignment operator ( "=" ) is *right associative*, just like in full blown C. So, if that part of the grammar looks like it needs correcting, then just know that it doesn't because I intentionally made the EBNF version right associative to be fully compatible with the "C-" BNF grammar. EDIT #1 : Incorporated changes mentioned in later posts into above EBNF grammar. Aeternitas modo est. Longa non est, paene nil. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 11 Guest(s)