Add 1token to parser combinators
parent
decbaab185
commit
2a5b65a912
|
@ -32,6 +32,8 @@ M: token-parser parse ( input parser -- list )
|
||||||
2drop nil
|
2drop nil
|
||||||
] if ;
|
] if ;
|
||||||
|
|
||||||
|
: 1token ( n -- parser ) 1string token ;
|
||||||
|
|
||||||
TUPLE: satisfy-parser quot ;
|
TUPLE: satisfy-parser quot ;
|
||||||
|
|
||||||
C: satisfy satisfy-parser ( quot -- parser )
|
C: satisfy satisfy-parser ( quot -- parser )
|
||||||
|
|
Loading…
Reference in New Issue