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)nitcc_runtime :: NError :: defaultinit
nitcc_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)nitcc_runtime :: NError :: message
The error message,usingexpected
and unexpected
nitcc_runtime $ NError :: SELF
Type of this instance, automatically specialized in every classnitcc_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 :: _expected
The things expected (if any)nitcc_runtime :: Node :: _position
The position of the node in the input streamnitcc_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 :: NError :: defaultinit
nitcc_runtime :: NToken :: defaultinit
core :: Object :: defaultinit
nitcc_runtime :: Node :: 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
core :: Object :: native_class_name
The class name of the object in CString format.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 :: Node :: to_dot_visitor
nitcc_runtime :: Node :: visit_children
Visit all the children of the node with the visitorv
# A special token used to represent a parser or lexer error
abstract class NError
super NToken
# All the partially built tree during parsing (aka the node_stack)
var error_tree = new Nodes[Node]
# The things unexpected
fun unexpected: String is abstract
# The things expected (if any)
var expected: nullable String = null
# The error message,using `expected` and `unexpected`
fun message: String
do
var exp = expected
var res = "Unexpected {unexpected}"
if exp != null then res += "; is acceptable instead: {exp}"
return res
end
end
lib/nitcc_runtime/nitcc_runtime.nit:505,1--526,3