Graftals in GF. examples/graftals

This commit is contained in:
krasimir
2009-02-14 14:07:04 +00:00
parent 8ec1a5643e
commit 37aebd395c
5 changed files with 65 additions and 0 deletions

View File

@@ -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 ;
}