Class: MODL::Parser::MODLParser::ModlContext
- Inherits:
-
Antlr4::Runtime::ParserRuleContext
- Object
- Antlr4::Runtime::ParserRuleContext
- MODL::Parser::MODLParser::ModlContext
- Defined in:
- lib/modl/parser/MODLParser.rb
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #enter_rule(listener) ⇒ Object
- #EOF ⇒ Object
- #exit_rule(listener) ⇒ Object
- #getRuleIndex ⇒ Object
-
#initialize(parent, invokingState) ⇒ ModlContext
constructor
A new instance of ModlContext.
- #modl_structure ⇒ Object
- #modl_structure_i(i) ⇒ Object
- #STRUCT_SEP ⇒ Object
- #STRUCT_SEP_i(i) ⇒ Object
Constructor Details
#initialize(parent, invokingState) ⇒ ModlContext
Returns a new instance of ModlContext.
144 145 146 |
# File 'lib/modl/parser/MODLParser.rb', line 144 def initialize( parent, invokingState) super(parent, invokingState) end |
Instance Method Details
#accept(visitor) ⇒ Object
161 162 163 164 165 166 167 |
# File 'lib/modl/parser/MODLParser.rb', line 161 def accept(visitor) if (visitor.respond_to?(:visitModl)) return visitor.visitModl(self) else return visitor.visit_children(self) end end |
#enter_rule(listener) ⇒ Object
150 151 152 153 154 |
# File 'lib/modl/parser/MODLParser.rb', line 150 def enter_rule( listener) if (listener.respond_to?(:enterModl)) listener.enterModl(self) end end |
#EOF ⇒ Object
129 130 131 |
# File 'lib/modl/parser/MODLParser.rb', line 129 def EOF() return token(MODLParser::EOF, 0) end |
#exit_rule(listener) ⇒ Object
155 156 157 158 159 |
# File 'lib/modl/parser/MODLParser.rb', line 155 def exit_rule( listener) if (listener.respond_to?(:exitModl)) listener.exitModl(self) end end |
#getRuleIndex ⇒ Object
147 148 149 |
# File 'lib/modl/parser/MODLParser.rb', line 147 def getRuleIndex() return RULE_modl end |
#modl_structure ⇒ Object
132 133 134 |
# File 'lib/modl/parser/MODLParser.rb', line 132 def modl_structure() return rule_contexts("Modl_structureContext") end |
#modl_structure_i(i) ⇒ Object
135 136 137 |
# File 'lib/modl/parser/MODLParser.rb', line 135 def modl_structure_i( i) return rule_context("Modl_structureContext",i) end |
#STRUCT_SEP ⇒ Object
138 139 140 |
# File 'lib/modl/parser/MODLParser.rb', line 138 def STRUCT_SEP() return tokens(MODLParser::STRUCT_SEP) end |
#STRUCT_SEP_i(i) ⇒ Object
141 142 143 |
# File 'lib/modl/parser/MODLParser.rb', line 141 def STRUCT_SEP_i( i) return token(MODLParser::STRUCT_SEP, i) end |