rename a couple more words
parent
c0294195e6
commit
9963213900
|
@ -74,7 +74,7 @@ name>char-hook [
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: lexer-before ( i -- before )
|
: lexer-subseq ( i -- before )
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
lexer get
|
lexer get
|
||||||
|
@ -102,7 +102,7 @@ ERROR: escaped-char-expected ;
|
||||||
escaped-char-expected
|
escaped-char-expected
|
||||||
] if ;
|
] if ;
|
||||||
|
|
||||||
: rest-begins? ( string -- ? )
|
: lexer-head? ( string -- ? )
|
||||||
[
|
[
|
||||||
lexer get [ line-text>> ] [ column>> ] bi tail-slice
|
lexer get [ line-text>> ] [ column>> ] bi tail-slice
|
||||||
] dip head? ;
|
] dip head? ;
|
||||||
|
@ -141,11 +141,11 @@ ERROR: escaped-char-expected ;
|
||||||
DEFER: (parse-multiline-string)
|
DEFER: (parse-multiline-string)
|
||||||
|
|
||||||
: parse-found-token ( i string token -- )
|
: parse-found-token ( i string token -- )
|
||||||
[ lexer-before % ] dip
|
[ lexer-subseq % ] dip
|
||||||
CHAR: \ = [
|
CHAR: \ = [
|
||||||
lexer get [ next-char , ] [ next-char , ] bi (parse-multiline-string)
|
lexer get [ next-char , ] [ next-char , ] bi (parse-multiline-string)
|
||||||
] [
|
] [
|
||||||
dup rest-begins? [
|
dup lexer-head? [
|
||||||
end-string-parse
|
end-string-parse
|
||||||
] [
|
] [
|
||||||
lexer get next-char , (parse-multiline-string)
|
lexer get next-char , (parse-multiline-string)
|
||||||
|
|
Loading…
Reference in New Issue