![]() |
![]() |
|
home—lectures—recipe—exams—hws—D2L—breeze (snow day; distance)
Expr ::= Num | Paren | BinOp | Ifnz Paren ::= | Expr | (note: these “|”s are literal -- not BNF “or”s) BinOp ::= ? Op Expr Expr Ifnz ::= ( Expr ) !0 Expr : Expr Op ::= ad | su | mu |
Semantics:
Note:Download the racket files, and then choose Open… from DrRacket. Do not copy/paste into an empty DrRacket window, since that window is probably using a student-language, and some of the files below use full racket.
Similarly, if using Java, the semantics of S0's arithmetic will be similar to IEEE floating point arithmetic (rather than perfectly-correct arithmetic).
Don't confuse S0's class
home—lectures—recipe—exams—hws—D2L—breeze (snow day; distance)
©2017, Ian Barland, Radford University Last modified 2017.Nov.14 (Tue) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |