! Lindenmayer string interpretation
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+: last ( seq -- [ last-item ] ) dup length* 1 - swap tail ;
+
SYMBOL: command-table
: segment-command ( seg -- command ) 1 swap head ;
USING: parser words compiler sequences ;
-"lindenmayer.factor" run-file
-"viewer.factor" run-file
+
+"contrib/x11/examples/lindenmayer/lindenmayer.factor" run-resource
+"contrib/x11/examples/lindenmayer/viewer.factor" run-resource
"lindenmayer" words [ try-compile ] each
\ No newline at end of file