Class: Modl::Parser::MODLParser::ModlContext

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

Instance Method Summary collapse

Constructor Details

#initialize(parent, invokingState) ⇒ ModlContext

Returns a new instance of ModlContext.



149
150
151
# File 'lib/modl/parser/MODLParser.rb', line 149

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

Instance Method Details

#accept(visitor) ⇒ Object



166
167
168
169
170
171
172
# File 'lib/modl/parser/MODLParser.rb', line 166

def accept(visitor)
	if ( visitor.is_a? MODLParserVisitor )
	  return visitor.visitModl(self)
	else
	 return visitor.visit_children(self)
	end
end

#enter_rule(listener) ⇒ Object



155
156
157
158
159
# File 'lib/modl/parser/MODLParser.rb', line 155

def enter_rule( listener)
	if ( listener.is_a? MODLParserListener )
	  listener.enterModl(self)
	end
end

#EOFObject



138
139
140
# File 'lib/modl/parser/MODLParser.rb', line 138

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

#exit_rule(listener) ⇒ Object



160
161
162
163
164
# File 'lib/modl/parser/MODLParser.rb', line 160

def exit_rule( listener)
	if ( listener.is_a? MODLParserListener )
	  listener.exitModl(self)
	end
end

#getRuleIndexObject



152
153
154
# File 'lib/modl/parser/MODLParser.rb', line 152

def getRuleIndex()
 return RULE_modl
end

#modl_structureObject



131
132
133
# File 'lib/modl/parser/MODLParser.rb', line 131

def modl_structure()
	return rule_contexts("Modl_structureContext")
end

#modl_structure_i(i) ⇒ Object



134
135
136
# File 'lib/modl/parser/MODLParser.rb', line 134

def modl_structure_i( i)
	return rule_context("Modl_structureContext",i)
end

#STRUCT_SEPObject



142
143
144
# File 'lib/modl/parser/MODLParser.rb', line 142

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

#STRUCT_SEP_i(i) ⇒ Object



146
147
148
# File 'lib/modl/parser/MODLParser.rb', line 146

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