Class: NScript::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/nscript/parser/parser.rb

Constant Summary collapse

Racc_arg =
[
racc_action_table,
racc_action_check,
racc_action_default,
racc_action_pointer,
racc_goto_table,
racc_goto_check,
racc_goto_default,
racc_goto_pointer,
racc_nt_base,
racc_reduce_table,
racc_token_table,
racc_shift_n,
racc_reduce_n,
racc_use_result_var ]
Racc_token_to_s_table =
[
"$end",
"error",
"IF",
"ELSE",
"UNLESS",
"NUMBER",
"STRING",
"REGEX",
"TRUE",
"FALSE",
"YES",
"NO",
"ON",
"OFF",
"IDENTIFIER",
"PROPERTY_ACCESS",
"PROTOTYPE_ACCESS",
"SOAK_ACCESS",
"CODE",
"PARAM_START",
"PARAM",
"PARAM_END",
"NEW",
"RETURN",
"CALL_START",
"CALL_END",
"INDEX_START",
"INDEX_END",
"TRY",
"CATCH",
"FINALLY",
"THROW",
"BREAK",
"CONTINUE",
"FOR",
"IN",
"OF",
"BY",
"WHEN",
"WHILE",
"SWITCH",
"LEADING_WHEN",
"DELETE",
"INSTANCEOF",
"TYPEOF",
"SUPER",
"EXTENDS",
"ASSIGN",
"NEWLINE",
"COMMENT",
"JS",
"INDENT",
"OUTDENT",
"\"?\"",
"UMINUS",
"UPLUS",
"NOT",
"\"!\"",
"\"!!\"",
"\"~\"",
"\"++\"",
"\"--\"",
"\"*\"",
"\"/\"",
"\"%\"",
"\".\"",
"\"+\"",
"\"-\"",
"\"<<\"",
"\">>\"",
"\">>>\"",
"\"&\"",
"\"|\"",
"\"^\"",
"\"<=\"",
"\"<\"",
"\">\"",
"\">=\"",
"\"==\"",
"\"!=\"",
"IS",
"ISNT",
"\"&&\"",
"\"||\"",
"AND",
"OR",
"\"-=\"",
"\"+=\"",
"\"/=\"",
"\"*=\"",
"\"%=\"",
"\"||=\"",
"\"&&=\"",
"\"?=\"",
"\"->\"",
"\"=>\"",
"\"\\n\"",
"\";\"",
"\",\"",
"\"{\"",
"\"}\"",
"\"@\"",
"\"[\"",
"\"]\"",
"\"(\"",
"\")\"",
"$start",
"Root",
"Terminator",
"Expressions",
"Block",
"Expression",
"Value",
"Call",
"Code",
"Operation",
"Assign",
"If",
"Try",
"Throw",
"Return",
"While",
"For",
"Switch",
"Extends",
"Splat",
"Existence",
"Comment",
"Literal",
"AssignObj",
"ParamList",
"FuncGlyph",
"Param",
"Array",
"Object",
"Parenthetical",
"Range",
"This",
"Accessor",
"Invocation",
"Index",
"Slice",
"AssignList",
"Super",
"Arguments",
"ArgList",
"SimpleArgs",
"Catch",
"ForVariables",
"ForSource",
"Whens",
"When",
"IfBlock",
"ElsIf",
"ElsIfs",
"ElseBody",
"IfEnd" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



2656
2657
2658
# File 'lib/nscript/parser/parser.rb', line 2656

def _reduce_none(val, _values, result)
  val[0]
end