Class: MODL::Parser::MODLParser::Modl_arrayContext

Inherits:
Antlr4::Runtime::ParserRuleContext
  • Object
show all
Defined in:
lib/modl/parser/MODLParser.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, invokingState) ⇒ Modl_arrayContext

Returns a new instance of Modl_arrayContext.



434
435
436
# File 'lib/modl/parser/MODLParser.rb', line 434

def initialize( parent,  invokingState)
	super(parent, invokingState)
end

Instance Method Details

#accept(visitor) ⇒ Object



451
452
453
454
455
456
457
# File 'lib/modl/parser/MODLParser.rb', line 451

def accept(visitor)
    if (visitor.respond_to?(:visitModl_array))
	  return visitor.visitModl_array(self)
    else
	 return visitor.visit_children(self)
    end
end

#enter_rule(listener) ⇒ Object



440
441
442
443
444
# File 'lib/modl/parser/MODLParser.rb', line 440

def enter_rule( listener)
    if (listener.respond_to?(:enterModl_array))
	  listener.enterModl_array(self)
    end
end

#exit_rule(listener) ⇒ Object



445
446
447
448
449
# File 'lib/modl/parser/MODLParser.rb', line 445

def exit_rule( listener)
    if (listener.respond_to?(:exitModl_array))
	  listener.exitModl_array(self)
    end
end

#getRuleIndexObject



437
438
439
# File 'lib/modl/parser/MODLParser.rb', line 437

def getRuleIndex()
 return RULE_modl_array
end

#LSBRACObject



410
411
412
# File 'lib/modl/parser/MODLParser.rb', line 410

def LSBRAC()
  return token(MODLParser::LSBRAC, 0)
end

#modl_array_itemObject



416
417
418
# File 'lib/modl/parser/MODLParser.rb', line 416

def modl_array_item()
	return rule_contexts("Modl_array_itemContext")
end

#modl_array_item_i(i) ⇒ Object



419
420
421
# File 'lib/modl/parser/MODLParser.rb', line 419

def modl_array_item_i( i)
	return rule_context("Modl_array_itemContext",i)
end

#modl_nb_arrayObject



422
423
424
# File 'lib/modl/parser/MODLParser.rb', line 422

def modl_nb_array()
	return rule_contexts("Modl_nb_arrayContext")
end

#modl_nb_array_i(i) ⇒ Object



425
426
427
# File 'lib/modl/parser/MODLParser.rb', line 425

def modl_nb_array_i( i)
	return rule_context("Modl_nb_arrayContext",i)
end

#RSBRACObject



413
414
415
# File 'lib/modl/parser/MODLParser.rb', line 413

def RSBRAC()
  return token(MODLParser::RSBRAC, 0)
end

#STRUCT_SEPObject



428
429
430
# File 'lib/modl/parser/MODLParser.rb', line 428

def STRUCT_SEP()
 return tokens(MODLParser::STRUCT_SEP)
end

#STRUCT_SEP_i(i) ⇒ Object



431
432
433
# File 'lib/modl/parser/MODLParser.rb', line 431

def STRUCT_SEP_i( i)
	return token(MODLParser::STRUCT_SEP, i)
end