jashkenas / context_free

Nonterminal goes to terminal, natch.

This URL has Read+Write access

name age message
file README Sun May 31 21:15:08 -0700 2009 spacing spacing [jashkenas]
file context_free.rb Sun Nov 08 12:40:35 -0800 2009 Committer: Martin Prout <martin_p@lineone.net>... [Martin Prout]
directory samples/ Mon Nov 09 08:39:56 -0800 2009 fixing dark_star.rb [jashkenas]
directory tests/ Wed Aug 26 07:00:12 -0700 2009 fixing triangles to the unit circle, thanks to ... [jashkenas]
README
           S
          /|\
         / | \
        /  |  \
       S  '+'  S
      /|\      |
     / | \     |
    S '+' S   'a'
    |     |
   '1'   '1'
   
   
CONTEXT_FREE: 
A library for context free art in Ruby-Processing.


RECOMMENDED READING:
contextfreeart.org
wikipedia.org/wiki/Chomsky_hierarchy
wikipedia.org/wiki/L-system


HOW TO:
For now, check out the samples.


TO DO:
* Make the drawings run in a separate thread so you can watch 'em go.
* Determine if we can run the rules iteratively without needing to parse them.
* Settle on a more compact vocabulary of options (although not as cryptic
  as ContextFree.app's).
* Comment the examples with helpful pointers.
* Write a real README.
* Stick up a GitHub wiki that's just a page full of images of all the examples.
* Try some neat integrations of context_free + control_panel.