Used by generated lexers
nitcc_runtime :: DFAState :: defaultinit
nitcc_runtime :: DFAState :: is_accept
nitcc_runtime :: DFAState :: is_ignored
nitcc_runtime :: DFAState :: make_token
nitcc_runtime $ DFAState :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
nitcc_runtime :: DFAState :: defaultinit
nitcc_runtime :: DFAState :: is_accept
nitcc_runtime :: DFAState :: is_ignored
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 :: DFAState :: make_token
core :: Object :: output_class_name
Display class name on stdout (debug only).
# A state in a lexer automaton generated by nitcc
# Used by generated lexers
interface DFAState
fun is_accept: Bool do return false
fun trans(c: Char): nullable DFAState do return null
fun make_token(position: Position, source: String): nullable NToken is abstract
fun is_ignored: Bool do return false
end
lib/nitcc_runtime/nitcc_runtime.nit:256,1--263,3