blob: a182d3ebda436a68709a320e5f68a51b937f6d50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 ;
}
|