Tags: | parsing |
Authors: | Slava Pestov, Joe Groff |
Class | Superclass | Slots |
lexer | tuple | text line line-text line-length column parsing-words |
lexer-error | tuple | line column line-text parsing-words error |
lexer-parsing-word | tuple | word line line-text column |
unexpected | tuple | want got |
Class | Superclass |
unexpected-eof | unexpected |
Word | Stack effect |
skip-blank | ( lexer -- ) |
skip-word | ( lexer -- ) |
Word | Stack effect |
(parse-raw) | ( lexer -- str ) |
<lexer-error> | ( msg -- error ) |
<lexer> | ( text -- lexer ) |
?scan-token | ( -- str/f ) |
change-lexer-column | ( ..a lexer quot: ( ..a col line -- ..b newcol ) -- ..b ) |
each-token | ( ... end quot: ( ... token -- ... ) -- ... ) |
expect | ( token -- ) |
forbid-tab | ( c -- c ) |
lexer-dump | ( error -- ) |
map-tokens | ( ... end quot: ( ... token -- ... elt ) -- ... seq ) |
new-lexer | ( text class -- lexer ) |
next-line | ( lexer -- ) |
parse-raw | ( lexer -- str/f ) |
parse-token | ( lexer -- str/f ) |
parse-tokens | ( end -- seq ) |
pop-parsing-word | ( -- ) |
push-parsing-word | ( word -- ) |
scan-token | ( -- str ) |
skip-comments | ( lexer str -- str' ) |
still-parsing-line? | ( lexer -- ? ) |
still-parsing? | ( lexer -- ? ) |
throw-unexpected-eof | ( word -- * ) |
unexpected | ( want got -- * ) |
with-lexer | ( lexer quot -- newquot ) |
Word | Stack effect |
lexer-error? | ( object -- ? ) |
lexer-parsing-word? | ( object -- ? ) |
lexer? | ( object -- ? ) |
unexpected-eof? | ( object -- ? ) |
unexpected? | ( object -- ? ) |