Last active
August 29, 2015 14:13
-
-
Save marionette-of-u/ed7f09b20a614912f970 to your computer and use it in GitHub Desktop.
The U Programming Language
This file contains hidden or 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
| t_category my_term_category | |
| v_category my_var_category | |
| (* function i(x, y) *) | |
| let i = my_term_category "i" [_, _] | |
| (* constant j *) | |
| let j = my_term_category "j" [] | |
| (* constant k *) | |
| let k = my_term_category "k" [] | |
| (* constant k' *) | |
| let k' = my_term_category "k'" [] | |
| (* variable x *) | |
| let x = my_var_category "x" | |
| (* variable y *) | |
| let y = my_var_category "y" | |
| let my_order = (extended_order i >_ord j >_ord k >_ord k') +_ordset Std.default_order | |
| let my_rule = rule (my_order) [(i x y, j); (j, k); (k, k')] | |
| let my_term_system = completion (trsystem my_rule) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment