Class: MediaWikiParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/mediacloth/mediawikiparser.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',
'BOLDSTART',
'BOLDEND',
'ITALICSTART',
'ITALICEND',
'LINKSTART',
'LINKEND',
'LINKSEP',
'INTLINKSTART',
'INTLINKEND',
'INTLINKSEP',
'RESOURCE_SEP',
'SECTION_START',
'SECTION_END',
'TEXT',
'PRE',
'HLINE',
'SIGNATURE_NAME',
'SIGNATURE_DATE',
'SIGNATURE_FULL',
'UL_START',
'UL_END',
'LI_START',
'LI_END',
'OL_START',
'OL_END',
'TABLE_START',
'TABLE_END',
'ROW_START',
'ROW_END',
'HEAD_START',
'HEAD_END',
'CELL_START',
'CELL_END',
'PARA_START',
'PARA_END',
'$start',
'wiki',
'repeated_contents',
'contents',
'text',
'bulleted_list',
'numbered_list',
'preformatted',
'section',
'para_contents',
'link_contents',
'reslink_repeated_contents',
'intlink_repeated_contents',
'table',
'link_repeated_contents',
'element',
'formatted_element',
'table_contents',
'row_contents',
'list_item',
'list_contents',
'@1']
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



859
860
861
# File 'lib/mediacloth/mediawikiparser.rb', line 859

def _reduce_none( val, _values, result )
 result
end