Class: BuildTool::Cfg::Parser

Inherits:
Lexer
  • Object
show all
Defined in:
lib/build-tool/cfg/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",
"APPEND",
"APPLY",
"ARCHIVE",
"BAZAR",
"BUILD_PREFIX",
"BUILD_SYSTEM",
"DESCRIPTION",
"DISABLE",
"ENABLE",
"END",
"ENVIRONMENT",
"EXTERNAL",
"FEATURE",
"FILE",
"GIT",
"GIT_SVN",
"GLOBAL",
"HOST",
"INCLUDE",
"INHERITANCE",
"INPLACE",
"INSTALL_PREFIX",
"LOCAL_PATH",
"LOG_DIRECTORY",
"LONG",
"MERCURIAL",
"MULTILINE_STRING",
"MODULE",
"ONLY",
"OPTION",
"PATCH",
"PATH",
"PREPEND",
"PROTOCOL",
"PUSH",
"REMOTE",
"REMOTE_PATH",
"REPOSITORY",
"SERVER",
"SET",
"SHORT",
"SSH_KEY",
"STRING",
"SVN",
"TEMPLATE",
"TEXT",
"TOKEN",
"TRACK",
"UNSET",
"URL",
"USE",
"USER",
"VAR",
"VCS",
"$start",
"main",
"top_level_statements",
"identifier",
"inheritance",
"top_level_statement",
"statement",
"build_system_declaration",
"environment_declaration",
"module_declaration",
"repository_declaration",
"server_declaration",
"ssh_key_declaration",
"include_directive",
"feature_declaration",
"vcs_options_declaration",
"vcs_declaration",
"git_declaration",
"bazar_declaration",
"svn_declaration",
"git_svn_declaration",
"archive_declaration",
"mercurial_declaration",
"git_options_declaration",
"archive_statements",
"archive_statement",
"build_system_statements",
"build_system_statement",
"environment_statements",
"environment_statement",
"feature_statements",
"feature_statement",
"multiline_string",
"bazar_statements",
"bazar_statement",
"git_global_option_statements",
"git_global_option_statement",
"git_option_statement",
"git_statements",
"git_remote_statements",
"git_remote_statement",
"git_statement",
"git_svn_statements",
"git_svn_statement",
"mercurial_statements",
"mercurial_statement",
"module_statements",
"module_statement",
"repository_statements",
"repository_statement",
"server_statements",
"server_statement",
"ssh_key_statements",
"ssh_key_statement",
"svn_statements",
"svn_statement",
"multiline_text" ]
Racc_debug_parser =
true

Instance Attribute Summary

Attributes inherited from Lexer

#filename, #lineno, #state

Instance Method Summary collapse

Methods inherited from Lexer

#_next_token, #action, #do_parse, #load_file, #next_token, #scan_file, #scan_setup, #scan_str

Methods included from LexerBase

#error, included, #next_token, #on_error, #parse_string, #peek, #pre_match

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1566
1567
1568
# File 'lib/build-tool/cfg/parser.rb', line 1566

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