Handbook
Glossary
lexer-error
Vocabulary
lexer
Error description
Thrown when the lexer encounters invalid input. A lexer error wraps an underlying error together with line and column numbers.
Definition
IN:
lexer
TUPLE:
lexer-error
line column line-text parsing-words error
;
Methods
USING:
accessors
continuations
fixups
kernel
lexer
namespaces
sequences
;
M:
lexer-error
compute-restarts
[
error-continuation
get
swap
compute-fixups
]
[
error>>
compute-restarts
]
bi
append
;
USING:
accessors
lexer
source-files.errors
;
M:
lexer-error
error-file
error>>
error-file
;
USING:
accessors
debugger
lexer
;
M:
lexer-error
error-help
error>>
error-help
;
USING:
accessors
kernel
lexer
source-files.errors
;
M:
lexer-error
error-line
[
error>>
error-line
]
[
line>>
]
bi
or
;
USING:
accessors
debugger
kernel
lexer
;
M:
lexer-error
error.
[
lexer-dump
]
[
error>>
error.
]
bi
;
USING:
accessors
arrays
combinators
fuel.pprint
fuel.pprint.private
lexer
sequences
;
M:
lexer-error
fuel-pprint
{
[
line>>
]
[
column>>
]
[
line-text>>
]
[
fuel-restarts
]
}
cleave
4array
lexer-error
prefix
fuel-pprint
;
USING:
accessors
lexer
summary
;
M:
lexer-error
summary
error>>
summary
;