Class: Riml::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/riml/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",
"ELSEIF",
"THEN",
"UNLESS",
"END",
"WHILE",
"UNTIL",
"BREAK",
"CONTINUE",
"TRY",
"CATCH",
"FINALLY",
"FOR",
"IN",
"DEF",
"DEF_BANG",
"SPLAT_PARAM",
"SPLAT_ARG",
"CALL",
"BUILTIN_COMMAND",
"CLASS",
"NEW",
"DEFM",
"DEFM_BANG",
"SUPER",
"RIML_FILE_COMMAND",
"RIML_CLASS_COMMAND",
"RETURN",
"NEWLINE",
"NUMBER",
"STRING_D",
"STRING_S",
"EX_LITERAL",
"REGEXP",
"TRUE",
"FALSE",
"LET",
"UNLET",
"UNLET_BANG",
"IDENTIFIER",
"DICT_VAL",
"SCOPE_MODIFIER",
"SCOPE_MODIFIER_LITERAL",
"SPECIAL_VAR_PREFIX",
"FINISH",
"\"!\"",
"\"*\"",
"\"/\"",
"\"%\"",
"\"+\"",
"\"-\"",
"\".\"",
"\">\"",
"\">#\"",
"\">?\"",
"\"<\"",
"\"<#\"",
"\"<?\"",
"\">=\"",
"\">=#\"",
"\">=?\"",
"\"<=\"",
"\"<=#\"",
"\"<=?\"",
"\"==\"",
"\"==?\"",
"\"==#\"",
"\"=~\"",
"\"=~?\"",
"\"=~#\"",
"\"!~\"",
"\"!~?\"",
"\"!~#\"",
"\"!=\"",
"\"!=?\"",
"\"!=#\"",
"IS",
"ISNOT",
"\"&&\"",
"\"||\"",
"\"?\"",
"\"=\"",
"\"+=\"",
"\"-=\"",
"\".=\"",
"\",\"",
"\"(\"",
"\")\"",
"\";\"",
"\"[\"",
"\"]\"",
"\"{\"",
"\"}\"",
"\":\"",
"\"===\"",
"$start",
"Root",
"Terminator",
"Statements",
"Statement",
"ExplicitCall",
"Def",
"Return",
"UnletVariable",
"ExLiteral",
"For",
"While",
"Until",
"Try",
"ClassDefinition",
"LoopKeyword",
"EndScript",
"RimlFileCommand",
"RimlClassCommand",
"MultiAssign",
"If",
"Unless",
"Expression",
"ExpressionWithoutDictLiteral",
"Dictionary",
"DictGetWithDotLiteral",
"BinaryOperator",
"Ternary",
"Assign",
"Super",
"UnaryOperator",
"DictGet",
"ListOrDictGet",
"AllVariableRetrieval",
"LiteralWithoutDictLiteral",
"Call",
"ObjectInstantiation",
"PossibleStringValue",
"String",
"Number",
"Regexp",
"List",
"ScopeModifierLiteral",
"ListLiteral",
"ListUnpack",
"ListItems",
"DictionaryLiteral",
"DictItems",
"DictItem",
"DictGetWithDot",
"ListOrDictGetWithBrackets",
"ListOrDictGetAssign",
"SubList",
"Scope",
"DefCallIdentifier",
"ArgList",
"ArgListWithoutNothing",
"ObjectInstantiationCall",
"ClassArgList",
"SIDAndScope",
"ArgListWithoutNothingWithSplat",
"ArgListWithSplat",
"AssignExpression",
"AssignLHS",
"VariableRetrieval",
"SimpleVariableRetrieval",
"CurlyBraceName",
"CurlyBraceVarPart",
"FunctionType",
"DefKeywords",
"Block",
"ParamList",
"DefaultParam",
"Returnable",
"IfBlock",
"Catch",
"ElseBlock",
"ElseifBlock" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



3263
3264
3265
# File 'lib/riml/parser.rb', line 3263

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