n string tag
2over nth-check-eof {
{ [ dup openstreq member? ] [ ch read-double-matched ] } ! (=( or ((
- { [ dup blank? ] [
+ { [ dup unicode:blank? ] [
drop dup '[ _ matching-delimiter-string closestr1 2array members lex-until ] dip
swap unclip-last 3array ] } ! ( foo )
[ drop [ slice-til-whitespace drop ] dip span-slices ] ! (foo)
[ "<" head? ]
[ length 2 >= ]
[ rest strict-upper? not ]
- [ [ blank? ] any? not ]
+ [ [ unicode:blank? ] any? not ]
[ "/>" tail? ]
} 1&& ;
[ length 2 >= ]
[ second CHAR: / = not ]
[ rest strict-upper? not ]
- [ [ blank? ] any? not ]
+ [ [ unicode:blank? ] any? not ]
[ ">" tail? ]
} 1&& ;
[ length 2 >= ]
[ second CHAR: / = not ]
[ rest strict-upper? not ]
- [ [ blank? ] any? not ]
+ [ [ unicode:blank? ] any? not ]
[ ">" tail? not ]
} 1&& ;
[ "</" head? ]
[ length 2 >= ]
[ rest strict-upper? not ]
- [ [ blank? ] any? not ]
+ [ [ unicode:blank? ] any? not ]
[ ">" tail? ]
} 1&& ;
: check-compound-loop ( n/f string -- n/f string ? )
[ ] [ peek1-from ] [ previous-from ] 2tri
- [ blank? ] bi@ or not ! no blanks between tokens
+ [ unicode:blank? ] bi@ or not ! no blanks between tokens
pick and ; ! and a valid index
: lex-factor ( n/f string/f -- n'/f string literal/f )