Created
October 4, 2019 16:08
-
-
Save eric-corumdigital/066defb6e76b4d7f167fb2f59bc5800a to your computer and use it in GitHub Desktop.
kframework first try
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
module FRIST-SYNTAX | |
syntax Expr ::= Expr "+" Expr [left, strict] | |
| "(" Expr ")" [bracket] | |
| Ident | |
syntax Ident ::= "x" | "y" | "z" | |
endmodule | |
module FRIST | |
imports FRIST-SYNTAX | |
rule X + Y => Y + X [structural] | |
rule X + (Y + Z) => (X + Y) + Z [structural] | |
rule (X + Y) + Z => X + (Y + Z) [structural] | |
endmodule | |
# kompile frist.k | |
[WARNING] Running as root is not recommended | |
File "realdef.ml", line 218, characters 90-97: | |
Error: This variant expression is expected to have type bool | |
The constructor KApply2 does not belong to type bool | |
[Error] Critical: ocamlopt returned nonzero exit code: 2 | |
Examine output to see errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment