nitcc_runtime :: NParserError :: token=
The unexpected tokennitcc_runtime $ NParserError :: SELF
Type of this instance, automatically specialized in every classnitcc_runtime :: Node :: children
A point of view on the direct children of the nodecore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitcc_runtime :: NToken :: defaultinit
nitcc_runtime :: Node :: defaultinit
nitcc_runtime :: NError :: defaultinit
core :: Object :: defaultinit
nitcc_runtime :: Node :: depth
A point of view of a depth-first visit of all non-null childrennitcc_runtime :: Node :: depth=
A point of view of a depth-first visit of all non-null childrennitcc_runtime :: NError :: error_tree
All the partially built tree during parsing (aka the node_stack)nitcc_runtime :: NError :: error_tree=
All the partially built tree during parsing (aka the node_stack)nitcc_runtime :: NError :: expected=
The things expected (if any)core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitcc_runtime :: NError :: message
The error message,usingexpected
and unexpected
nitcc_runtime :: Node :: node_name
The name of the node (as used in the grammar file)core :: Object :: output_class_name
Display class name on stdout (debug only).nitcc_runtime :: Node :: position
The position of the node in the input streamnitcc_runtime :: Node :: position=
The position of the node in the input streamnitcc_runtime :: Node :: to_dot
Produce a graphiz file for the syntaxtic tree rooted atself
.
nitcc_runtime :: NParserError :: token=
The unexpected tokennitcc_runtime :: Node :: visit_children
Visit all the children of the node with the visitorv
# A parser error linked to a unexpected token
class NParserError
super NError
# The unexpected token
var token: nullable NToken = null
redef fun unexpected
do
var res = token.node_name
var text = token.text
if not text.is_empty and res != "'{text}'" then
res += " '{text.escape_to_c}'"
end
return res
end
end
lib/nitcc_runtime/nitcc_runtime.nit:530,1--546,3