Skip to content

tk3369/LSystem.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSystem

This package implements a domain-specific language for L-System.

Installation

] add https://github.com/tk3369/LSystem.jl

Sample Usage

Create an algae model as follows:

algae_model = @lsys begin
    axiom : A
    rule  : A → AB
    rule  : B → A
end

Start a new state by creating a LState object from the mode. Then, generate the next sequence using next function.

algae_state = LState(algae_model)
println(algae_state)
println(algae_state |> next)
println(algae_state |> next |> next)
println(algae_state |> next |> next |> next)

About

A domain specific language for L-system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages