Class: EndableParseState
- Inherits:
-
ParseState
- Object
- ParseState
- EndableParseState
- Defined in:
- lib/saikuro.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ParseState
#children, #complexity, #lines, #name, #parent
Instance Method Summary collapse
- #do_end_token(token) ⇒ Object
-
#initialize(lexer, parent = nil) ⇒ EndableParseState
constructor
A new instance of EndableParseState.
Methods inherited from ParseState
#calc_complexity, #calc_lines, #compute_state, #compute_state_for_global, #count_tokens?, #do_begin_token, #do_block_token, #do_case_token, #do_class_token, #do_comment_token, #do_conditional_do_control_token, #do_conditional_token, #do_constant_token, #do_def_token, #do_else_token, #do_identifier_token, #do_module_token, #do_one_line_conditional_token, #do_right_brace_token, #do_symbol_token, #end_debug, get_token_counter, #lexer=, #lexer_loop?, #make_state, make_top_state, #parse, #parse_token, set_token_counter, #top_state?
Constructor Details
#initialize(lexer, parent = nil) ⇒ EndableParseState
Returns a new instance of EndableParseState.
417 418 419 420 |
# File 'lib/saikuro.rb', line 417 def initialize(lexer,parent=nil) super(lexer,parent) STDOUT.puts "Starting #{self.class}" if $VERBOSE end |
Instance Method Details
#do_end_token(token) ⇒ Object
422 423 424 425 426 |
# File 'lib/saikuro.rb', line 422 def do_end_token(token) end_debug @run = false nil end |