We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2d967 commit b18d13aCopy full SHA for b18d13a
parsedto.fs
@@ -22,9 +22,15 @@
22
: rec:to ( addr u -- xt r:to | r:fail )
23
\G words prefixed with @code{->} are treated as if preceeded by
24
\G @code{TO} or @code{IS}
25
- 2dup s" ->" string-prefix? 0= IF 2drop r:fail EXIT THEN
26
- 2 /string dup 0= IF 2drop r:fail EXIT THEN
27
- recognize dup r:fail = ?EXIT
+ dup 3 u< IF 2drop r:fail EXIT THEN
+ over 1+ c@ '>' <> IF 2drop r:fail EXIT THEN
+ case over c@
28
+ '-' of 0 to-style# ! endof
29
+ '+' of 1 to-style# ! endof
30
+ '&' of -1 to-style# ! endof
31
+ drop 2drop r:fail EXIT
32
+ endcase
33
+ 2 /string recognize dup r:fail = IF to-style# off EXIT THEN
34
name?int r:to ;
35
36
' rec:to get-recognizers 1+ set-recognizers
0 commit comments