diff options
| author | aarne <aarne@cs.chalmers.se> | 2005-12-20 14:20:42 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2005-12-20 14:20:42 +0000 |
| commit | 25b31684378d3b0668b65939fc7b30b0c1e8d130 (patch) | |
| tree | 7ed3e007a8847096087a3593504aec526fedd455 /examples/systemS/FormulaSymb.gf | |
| parent | 774abf612d5cc3a099f229c9cc649c7c51979f2d (diff) | |
CS's system S
Diffstat (limited to 'examples/systemS/FormulaSymb.gf')
| -rw-r--r-- | examples/systemS/FormulaSymb.gf | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/systemS/FormulaSymb.gf b/examples/systemS/FormulaSymb.gf new file mode 100644 index 000000000..5c2360673 --- /dev/null +++ b/examples/systemS/FormulaSymb.gf @@ -0,0 +1,22 @@ +--# -path=.:prelude + +concrete FormulaSymb of Formula = open Precedence in { + + lincat + Formula, Term = PrecExp ; + + lin + And = infixL 3 "&" ; + Or = infixL 2 "v" ; + If = infixR 1 "->" ; + Not = prefixR 4 "~" ; + Abs = constant "_|_" ; + +---- All P = mkPrec 4 PR (paren ("All" ++ P.$0) ++ usePrec P 4) ; +---- Exist P = mkPrec 4 PR (paren ("Ex" ++ P.$0) ++ usePrec P 4) ; + + A = constant "A" ; + B = constant "B" ; + C = constant "C" ; + +}
\ No newline at end of file |
