summaryrefslogtreecommitdiff
path: root/book/examples/chapter8/GeometryEng.gf
diff options
context:
space:
mode:
Diffstat (limited to 'book/examples/chapter8/GeometryEng.gf')
-rw-r--r--book/examples/chapter8/GeometryEng.gf13
1 files changed, 13 insertions, 0 deletions
diff --git a/book/examples/chapter8/GeometryEng.gf b/book/examples/chapter8/GeometryEng.gf
new file mode 100644
index 000000000..36d840303
--- /dev/null
+++ b/book/examples/chapter8/GeometryEng.gf
@@ -0,0 +1,13 @@
+--# -path=alltenses
+
+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")) ;
+}