From a0d29903a026a1e452826638282f710f9598602b Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Wed, 14 Jan 2009 00:35:47 -0600 Subject: [PATCH] Remove 'unmaintained/lsys' --- unmaintained/lsys/authors.txt | 1 - unmaintained/lsys/strings/authors.txt | 1 - .../lsys/strings/interpret/authors.txt | 1 - .../lsys/strings/interpret/interpret.factor | 35 -- unmaintained/lsys/strings/rewrite/authors.txt | 1 - .../lsys/strings/rewrite/rewrite.factor | 36 -- unmaintained/lsys/strings/strings.factor | 14 - unmaintained/lsys/summary.txt | 1 - unmaintained/lsys/tags.txt | 1 - unmaintained/lsys/tortoise/authors.txt | 1 - .../lsys/tortoise/graphics/authors.txt | 1 - .../lsys/tortoise/graphics/graphics.factor | 153 ------ unmaintained/lsys/tortoise/tortoise.factor | 31 -- unmaintained/lsys/ui/authors.txt | 1 - unmaintained/lsys/ui/deploy.factor | 13 - unmaintained/lsys/ui/tags.txt | 1 - unmaintained/lsys/ui/ui.factor | 507 ------------------ 17 files changed, 799 deletions(-) delete mode 100644 unmaintained/lsys/authors.txt delete mode 100755 unmaintained/lsys/strings/authors.txt delete mode 100755 unmaintained/lsys/strings/interpret/authors.txt delete mode 100644 unmaintained/lsys/strings/interpret/interpret.factor delete mode 100755 unmaintained/lsys/strings/rewrite/authors.txt delete mode 100644 unmaintained/lsys/strings/rewrite/rewrite.factor delete mode 100644 unmaintained/lsys/strings/strings.factor delete mode 100644 unmaintained/lsys/summary.txt delete mode 100644 unmaintained/lsys/tags.txt delete mode 100755 unmaintained/lsys/tortoise/authors.txt delete mode 100755 unmaintained/lsys/tortoise/graphics/authors.txt delete mode 100644 unmaintained/lsys/tortoise/graphics/graphics.factor delete mode 100644 unmaintained/lsys/tortoise/tortoise.factor delete mode 100755 unmaintained/lsys/ui/authors.txt delete mode 100755 unmaintained/lsys/ui/deploy.factor delete mode 100644 unmaintained/lsys/ui/tags.txt delete mode 100644 unmaintained/lsys/ui/ui.factor diff --git a/unmaintained/lsys/authors.txt b/unmaintained/lsys/authors.txt deleted file mode 100644 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/strings/authors.txt b/unmaintained/lsys/strings/authors.txt deleted file mode 100755 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/strings/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/strings/interpret/authors.txt b/unmaintained/lsys/strings/interpret/authors.txt deleted file mode 100755 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/strings/interpret/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/strings/interpret/interpret.factor b/unmaintained/lsys/strings/interpret/interpret.factor deleted file mode 100644 index 8d27b29d22..0000000000 --- a/unmaintained/lsys/strings/interpret/interpret.factor +++ /dev/null @@ -1,35 +0,0 @@ - -USING: kernel sequences quotations assocs math math.parser - combinators.lib vars lsys.strings combinators.short-circuit ; - -IN: lsys.strings.interpret - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: command-table - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: exec-command ( string -- ) command-table> at >quotation call ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: command ( string -- command ) 1 head ; - -: parameter ( string -- parameter ) - [ drop 2 ] [ length 1- ] [ ] tri subseq string>number ; - -: exec-command* ( string -- ) - [ parameter ] [ command ] bi - command-table> at dup - [ 1 tail* call ] [ 2drop ] if ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: (interpret) ( slice -- ) - { { [ empty? ] [ drop ] } - { [ has-param? ] [ next+rest* [ exec-command* ] [ (interpret) ] bi* ] } - { [ t ] [ next+rest [ exec-command ] [ (interpret) ] bi* ] } } - switch ; - -: interpret ( string -- ) (interpret) ; diff --git a/unmaintained/lsys/strings/rewrite/authors.txt b/unmaintained/lsys/strings/rewrite/authors.txt deleted file mode 100755 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/strings/rewrite/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/strings/rewrite/rewrite.factor b/unmaintained/lsys/strings/rewrite/rewrite.factor deleted file mode 100644 index 622a86c425..0000000000 --- a/unmaintained/lsys/strings/rewrite/rewrite.factor +++ /dev/null @@ -1,36 +0,0 @@ - -USING: kernel sbufs strings sequences assocs math - combinators.lib vars lsys.strings combinators.short-circuit ; - -IN: lsys.strings.rewrite - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: rules - -: lookup ( str -- str ) [ 1 head rules> at ] [ ] bi or ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: accum - -: push-next ( next -- ) lookup accum> push-all ; - -: (rewrite) ( slice -- ) - { { [ empty? ] [ drop ] } - { [ has-param? ] [ next+rest* [ push-next ] [ (rewrite) ] bi* ] } - { [ t ] [ next+rest [ push-next ] [ (rewrite) ] bi* ] } } - switch ; - -: rewrite ( string -- string ) - dup length 10 * >accum - (rewrite) - accum> >string ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: result - -: iterate ( -- ) result> rewrite >result ; - -: iterations ( n -- ) [ iterate ] times ; diff --git a/unmaintained/lsys/strings/strings.factor b/unmaintained/lsys/strings/strings.factor deleted file mode 100644 index 603c6cc630..0000000000 --- a/unmaintained/lsys/strings/strings.factor +++ /dev/null @@ -1,14 +0,0 @@ - -USING: kernel sequences math combinators.lib combinators.short-circuit ; - -IN: lsys.strings - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: has-param? ( slice -- ? ) { [ length 1 > ] [ second CHAR: ( = ] } 1&& ; - -: next+rest ( slice -- next rest ) [ 1 head ] [ 1 tail-slice ] bi ; - -: index-rest ( slice -- i ) CHAR: ) swap index 1+ ; - -: next+rest* ( slice -- next rest ) dup index-rest [ head ] [ tail-slice ] 2bi ; diff --git a/unmaintained/lsys/summary.txt b/unmaintained/lsys/summary.txt deleted file mode 100644 index 2615e85329..0000000000 --- a/unmaintained/lsys/summary.txt +++ /dev/null @@ -1 +0,0 @@ -Lindenmayer system explorer diff --git a/unmaintained/lsys/tags.txt b/unmaintained/lsys/tags.txt deleted file mode 100644 index bf31fdbc2e..0000000000 --- a/unmaintained/lsys/tags.txt +++ /dev/null @@ -1 +0,0 @@ -applications diff --git a/unmaintained/lsys/tortoise/authors.txt b/unmaintained/lsys/tortoise/authors.txt deleted file mode 100755 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/tortoise/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/tortoise/graphics/authors.txt b/unmaintained/lsys/tortoise/graphics/authors.txt deleted file mode 100755 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/tortoise/graphics/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/tortoise/graphics/graphics.factor b/unmaintained/lsys/tortoise/graphics/graphics.factor deleted file mode 100644 index ab679c8369..0000000000 --- a/unmaintained/lsys/tortoise/graphics/graphics.factor +++ /dev/null @@ -1,153 +0,0 @@ - -USING: kernel math vectors sequences opengl.gl math.vectors math.order - math.matrices vars opengl self pos ori turtle lsys.tortoise - - lsys.strings.interpret combinators.short-circuit ; - - ! lsys.strings - -IN: lsys.tortoise.graphics - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -! (v0 - v1) x (v1 - v2) - -: polygon-normal ( {_v0_v1_v2_} -- normal ) first3 dupd v- -rot v- swap cross ; - -: (polygon) ( vertices -- ) -GL_POLYGON glBegin -dup polygon-normal gl-normal [ gl-vertex ] each -glEnd ; - -: polygon ( vertices -- ) dup length 3 >= [ (polygon) ] [ drop ] if ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: vertices - -! : init-vertices ( -- ) 0 >vertices ; - -: start-polygon ( -- ) vertices> delete-all ; - -: finish-polygon ( -- ) vertices> polygon ; - -: polygon-vertex ( -- ) pos> vertices> push ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: record-vertex ( -- ) pos> gl-vertex ; - -: draw-forward ( length -- ) -GL_LINES glBegin record-vertex step-turtle record-vertex glEnd ; - -: move-forward ( length -- ) step-turtle polygon-vertex ; - -: sneak-forward ( length -- ) step-turtle ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: scale-len ( m -- ) len> * >len ; - -: scale-angle ( m -- ) angle> * >angle ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: set-thickness ( i -- ) dup >thickness glLineWidth ; - -: scale-thickness ( m -- ) thickness> * 0.5 max set-thickness ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: color-table - -: init-color-table ( -- ) -{ { 0 0 0 } ! black - { 0.5 0.5 0.5 } ! grey - { 1 0 0 } ! red - { 1 1 0 } ! yellow - { 0 1 0 } ! green - { 0.25 0.88 0.82 } ! turquoise - { 0 0 1 } ! blue - { 0.63 0.13 0.94 } ! purple - { 0.00 0.50 0.00 } ! dark green - { 0.00 0.82 0.82 } ! dark turquoise - { 0.00 0.00 0.50 } ! dark blue - { 0.58 0.00 0.82 } ! dark purple - { 0.50 0.00 0.00 } ! dark red - { 0.25 0.25 0.25 } ! dark grey - { 0.75 0.75 0.75 } ! medium grey - { 1 1 1 } ! white -} [ 1 suffix ] map >color-table ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: material-color ( color -- ) -GL_FRONT_AND_BACK GL_AMBIENT_AND_DIFFUSE rot gl-material ; - -: set-color ( i -- ) -dup >color color-table> nth dup gl-color material-color ; - -: inc-color ( -- ) color> 1+ set-color ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: tortoise-stack - -! : init-tortoise-stack ( -- ) V{ } clone >tortoise-stack ; - -! : save-tortoise ( -- ) self> tortoise-stack> push ; - -! : save-tortoise ( -- ) self> tortoise-stack> push self> clone >self ; - -: save-tortoise ( -- ) self> clone tortoise-stack> push ; - -: restore-tortoise ( -- ) -tortoise-stack> pop >self -color> set-color -thickness> set-thickness ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: default-values -VAR: model-values - -: lparser-dialect ( -- ) - -[ 1 >len 45 >angle 1 >thickness 2 >color ] >default-values - -H{ { "+" [ angle> turn-left ] } - { "-" [ angle> turn-right ] } - { "&" [ angle> pitch-down ] } - { "^" [ angle> pitch-up ] } - { "<" [ angle> roll-left ] } - { ">" [ angle> roll-right ] } - - { "|" [ 180.0 rotate-y ] } - { "%" [ 180.0 rotate-z ] } - { "$" [ roll-until-horizontal ] } - - { "F" [ len> draw-forward ] } - { "Z" [ len> 2 / draw-forward ] } - { "f" [ len> move-forward ] } - { "z" [ len> 2 / move-forward ] } - { "g" [ len> sneak-forward ] } - { "." [ polygon-vertex ] } - - { "[" [ save-tortoise ] } - { "]" [ restore-tortoise ] } - { "{" [ start-polygon ] } - { "}" [ finish-polygon ] } - - { "/" [ 1.1 scale-len ] } ! double quote command in lparser - { "'" [ 0.9 scale-len ] } - { ";" [ 1.1 scale-angle ] } - { ":" [ 0.9 scale-angle ] } - { "?" [ 1.4 scale-thickness ] } - { "!" [ 0.7 scale-thickness ] } - - { "c" [ color> 1 + color-table> length mod set-color ] } - -} >command-table ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - diff --git a/unmaintained/lsys/tortoise/tortoise.factor b/unmaintained/lsys/tortoise/tortoise.factor deleted file mode 100644 index 8c4ac60e6d..0000000000 --- a/unmaintained/lsys/tortoise/tortoise.factor +++ /dev/null @@ -1,31 +0,0 @@ - -USING: kernel generic math arrays - math.matrices generic.lib pos ori self turtle ; - -IN: lsys.tortoise - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -TUPLE: tortoise angle len thickness color ; - -: ( -- tortoise ) - tortoise construct-delegate ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: angle> ( -- val ) self> tortoise-angle ; - -: >angle ( val -- ) self> set-tortoise-angle ; - -: len> ( -- val ) self> tortoise-len ; - -: >len ( val -- ) self> set-tortoise-len ; - -: thickness> ( -- val ) self> tortoise-thickness ; - -: >thickness ( val -- ) self> set-tortoise-thickness ; - -: color> ( -- val ) self> tortoise-color ; - -: >color ( val -- ) self> set-tortoise-color ; - diff --git a/unmaintained/lsys/ui/authors.txt b/unmaintained/lsys/ui/authors.txt deleted file mode 100755 index 6cfd5da273..0000000000 --- a/unmaintained/lsys/ui/authors.txt +++ /dev/null @@ -1 +0,0 @@ -Eduardo Cavazos diff --git a/unmaintained/lsys/ui/deploy.factor b/unmaintained/lsys/ui/deploy.factor deleted file mode 100755 index 4db8cf93e9..0000000000 --- a/unmaintained/lsys/ui/deploy.factor +++ /dev/null @@ -1,13 +0,0 @@ -USING: tools.deploy.config ; -V{ - { deploy-ui? t } - { deploy-io 1 } - { deploy-reflection 2 } - { deploy-compiler? t } - { deploy-math? t } - { deploy-word-props? t } - { deploy-word-defs? t } - { deploy-c-types? f } - { "stop-after-last-window?" t } - { deploy-name "Lindenmayer System Explorer" } -} diff --git a/unmaintained/lsys/ui/tags.txt b/unmaintained/lsys/ui/tags.txt deleted file mode 100644 index cb5fc203e1..0000000000 --- a/unmaintained/lsys/ui/tags.txt +++ /dev/null @@ -1 +0,0 @@ -demos diff --git a/unmaintained/lsys/ui/ui.factor b/unmaintained/lsys/ui/ui.factor deleted file mode 100644 index 832f7b9131..0000000000 --- a/unmaintained/lsys/ui/ui.factor +++ /dev/null @@ -1,507 +0,0 @@ - -USING: kernel namespaces threads math math.order math.vectors - quotations sequences - opengl - opengl.gl - colors - ui - ui.gestures - ui.gadgets - ui.gadgets.packs - ui.gadgets.labels - ui.gadgets.buttons - ui.gadgets.lib - ui.gadgets.slate - ui.gadgets.theme - vars rewrite-closures - self pos ori turtle opengl.camera - lsys.tortoise lsys.tortoise.graphics - lsys.strings.rewrite lsys.strings.interpret - combinators.short-circuit accessors ; - - ! lsys.strings - ! lsys.strings.rewrite - ! lsys.strings.interpret - -IN: lsys.ui - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: slate - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: camera - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -VAR: model - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: display ( -- ) - -black set-clear-color GL_COLOR_BUFFER_BIT glClear - -GL_FLAT glShadeModel - -GL_PROJECTION glMatrixMode -glLoadIdentity --1 1 -1 1 1.5 200 glFrustum - -GL_MODELVIEW glMatrixMode - -glLoadIdentity - -camera> do-look-at - -GL_FRONT_AND_BACK GL_LINE glPolygonMode - -white color>raw glColor4d - -! white set-color - -GL_LINES glBegin { 0 0 0 } gl-vertex { 0 0 1 } gl-vertex glEnd - -color> set-color - -model> glCallList ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: result>model ( -- ) -slate> find-gl-context -model> GL_COMPILE glNewList result> interpret glEndList ; - -: build-model ( -- ) -tortoise-stack> delete-all -vertices> delete-all -reset-turtle -default-values> call -model-values> call -result>model -[ display ] closed-quot slate> set-slate-action -slate> relayout-1 ; - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -USING: hashtables namespaces.lib ui.gadgets.handler ; - -: camera-action ( quot -- quot ) -[ drop [ ] camera> with-self slate> relayout-1 ] make* closed-quot ; - -VAR: frame -VAR: handler - -DEFER: model-chooser -DEFER: scene-chooser -DEFER: empty-model - -! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -: lsys-controller ( -- ) - - - -{ - -[ "Load"