Interface allowing the acces of the tables used during the parsing.

Introduced properties

fun lexer_accept(i: Int): Int

nitc :: TablesCapable :: lexer_accept

The accept value of the lexer at i
fun lexer_goto(i: Int, j: Int): Int

nitc :: TablesCapable :: lexer_goto

The goto value of the lexer at row i, column j-1
fun parser_action(i: Int, j: Int): Int

nitc :: TablesCapable :: parser_action

The action value of the parser at row i, column j-1
fun parser_goto(i: Int, j: Int): Int

nitc :: TablesCapable :: parser_goto

The goto value of the parser at row i, column j-1

Redefined properties

redef type SELF: TablesCapable

nitc $ TablesCapable :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
fun lexer_accept(i: Int): Int

nitc :: TablesCapable :: lexer_accept

The accept value of the lexer at i
fun lexer_goto(i: Int, j: Int): Int

nitc :: TablesCapable :: lexer_goto

The goto value of the lexer at row i, column j-1
private intern fun native_class_name: CString

core :: Object :: native_class_name

The class name of the object in CString format.
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun parser_action(i: Int, j: Int): Int

nitc :: TablesCapable :: parser_action

The action value of the parser at row i, column j-1
fun parser_goto(i: Int, j: Int): Int

nitc :: TablesCapable :: parser_goto

The goto value of the parser at row i, column j-1
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
package_diagram nitc::TablesCapable TablesCapable core::Object Object nitc::TablesCapable->core::Object nitc::AMethPropdef AMethPropdef nitc::AMethPropdef->nitc::TablesCapable nitc::Lexer Lexer nitc::Lexer->nitc::TablesCapable nitc::Parser Parser nitc::Parser->nitc::TablesCapable nitc::AMainMethPropdef AMainMethPropdef nitc::AMainMethPropdef->nitc::AMethPropdef nitc::AMainMethPropdef... ... nitc::AMainMethPropdef...->nitc::AMainMethPropdef nitc::InjectedLexer InjectedLexer nitc::InjectedLexer->nitc::Lexer nitc::InjectedLexer... ... nitc::InjectedLexer...->nitc::InjectedLexer

Parents

interface Object

core :: Object

The root of the class hierarchy.

Children

class AMethPropdef

nitc :: AMethPropdef

A definition of all kind of method (including constructors)
class Lexer

nitc :: Lexer

The lexer extract NIT tokens from an input stream.
class Parser

nitc :: Parser

The parser of the Nit language.

Descendants

class AMainMethPropdef

nitc :: AMainMethPropdef

The implicit main method
class InjectedLexer

nitc :: InjectedLexer

A modified lexer that feed tokens before and after the real tokens.

Class definitions

nitc $ TablesCapable
# Interface allowing the acces of the tables used during the parsing.
interface TablesCapable
	# The goto value of the lexer at row i, column j-1
	# Note that the length of the row r is stored at (r, 0)
	fun lexer_goto(i, j: Int): Int is extern "lexer_goto"

	# The accept value of the lexer at i
	fun lexer_accept(i: Int): Int is extern "lexer_accept"

	# The goto value of the parser at row i, column j-1
	# Note that the length of the row r is stored at (r, 0)
	fun parser_goto(i, j: Int): Int is extern "parser_goto"

	# The action value of the parser at row i, column j-1
	# Note that the length of the row r is stored at (r, 0)
	fun parser_action(i, j: Int): Int is extern "parser_action"
end
src/parser/tables.nit:18,1--34,3