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.



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

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

Instance Method Details

#accept(visitor) ⇒ Object



163
164
165
166
167
168
169
# File 'lib/modl/parser/MODLParser.rb', line 163

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

#enter_rule(listener) ⇒ Object



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

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

#EOFObject



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

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

#exit_rule(listener) ⇒ Object



157
158
159
160
161
# File 'lib/modl/parser/MODLParser.rb', line 157

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

#getRuleIndexObject



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

def getRuleIndex()
 return RULE_modl
end

#modl_structureObject



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

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

#modl_structure_i(i) ⇒ Object



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

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

#STRUCT_SEPObject



140
141
142
# File 'lib/modl/parser/MODLParser.rb', line 140

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

#STRUCT_SEP_i(i) ⇒ Object



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

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