[gforth] / gforth / regexp-test.fs  

gforth: gforth/regexp-test.fs

Diff for /gforth/regexp-test.fs between version 1.13 and 1.14

version 1.13, Sun Sep 5 20:07:50 2010 UTC version 1.14, Sun Sep 5 22:18:54 2010 UTC
Line 118 
Line 118 
 s" bla baz bar" ?foos1  s" bla baz bar" ?foos1
 s" foofoofoo" ?foos1  s" foofoofoo" ?foos1
   
   \ backtracking on decissions
   
   : ?aab ( addr u -- flag )
      (( {{ =" aa" || =" a" }} {{ =" ab" || =" a" }} )) ;
   s" aab" ?aab 0= [IF] .( aab failed!) cr [THEN]
   
 \ buffer overrun test (bug in =")  \ buffer overrun test (bug in =")
   
 ." --- buffer overrun test ---" cr  ." --- buffer overrun test ---" cr
Line 172 
Line 178 
          >> \1 s>number drop 60 *           >> \1 s>number drop 60 *
             \2 s>number drop + 60 *              \2 s>number drop + 60 *
             \3 s>number drop + 0 <# 's' hold #s #> <<              \3 s>number drop + 0 <# 's' hold #s #> <<
          || ` ( {* .? *} ` ) >> <<" "           || ` ( // ` ) >> <<" "
       }} LEAVE //s ;        }} LEAVE //s ;
   
 \ doesn't work yet  \ doesn't work yet


Generate output suitable for use with a patch program
Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help