diff options
Diffstat (limited to 'gf-book/examples/chapter8/GeometryEng.gf')
| -rw-r--r-- | gf-book/examples/chapter8/GeometryEng.gf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gf-book/examples/chapter8/GeometryEng.gf b/gf-book/examples/chapter8/GeometryEng.gf new file mode 100644 index 000000000..e2e22776e --- /dev/null +++ b/gf-book/examples/chapter8/GeometryEng.gf @@ -0,0 +1,13 @@ +--# -path=.:present + +concrete GeometryEng of Geometry = LogicEng ** + open SyntaxEng, ParadigmsEng in { +lin + Line = mkCN (mkN "line") ; + Point = mkCN (mkN "point") ; + Circle = mkCN (mkN "circle") ; + Intersect = pred (mkV2 "intersect") ; + Parallel = pred (mkA2 (mkA "parallel") (mkPrep "to")) ; + Vertical = pred (mkA "vertical") ; + Centre = app (mkN2 (mkN "centre") (mkPrep "of")) ; +} |
