diff options
Diffstat (limited to 'examples/graftals/Graftal.gf')
| -rw-r--r-- | examples/graftals/Graftal.gf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/graftals/Graftal.gf b/examples/graftals/Graftal.gf new file mode 100644 index 000000000..a182d3ebd --- /dev/null +++ b/examples/graftals/Graftal.gf @@ -0,0 +1,15 @@ +-- (c) Krasimir Angelov
+--
+-- The L-System is a grammar formalism which is used to describe
+-- graftals (recursive graphical objects). It is interesting
+-- coincidence that every L-System grammar could be redefined
+-- as PMCFG grammar. This demo shows how to generate graftals
+-- using GF. The output from every concrete syntax is in postscript
+-- format.
+
+abstract Graftal = {
+cat N; S;
+fun z : N ;
+ s : N -> N ;
+ c : N -> S ;
+}
\ No newline at end of file |
