mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 14:29:31 -06:00
15 lines
450 B
Plaintext
15 lines
450 B
Plaintext
-- (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 ;
|
|
} |