mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 00:52:51 -06:00
Graftals in GF. examples/graftals
This commit is contained in:
15
examples/graftals/Graftal.gf
Normal file
15
examples/graftals/Graftal.gf
Normal 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 ;
|
||||
}
|
||||
Reference in New Issue
Block a user