Created
April 12, 2014 22:45
-
-
Save mrb/10560648 to your computer and use it in GitHub Desktop.
OCaml Spelling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let prog = | |
CompoundStm(AssignStm("a", OpzExp(NumExp 5, Plus, NumExp 3)), | |
CompoundStm(AssignStm("b", | |
EseqExp(PrintStm[IdExp("a"), OpExp(IdExp("a"), Minus, NumExp 1)], | |
OpExp(NumExp 10, Times, IdExp("a")))), | |
PrintStm[IdExp("b")]));; | |
Error: The variant type exp has no constructor OpzExp | |
Did you mean OpExp? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment