Class: Modl::Parser::MODLParser::Modl_primitiveContext
- Inherits:
-
Antlr4::Runtime::ParserRuleContext
- Object
- Antlr4::Runtime::ParserRuleContext
- Modl::Parser::MODLParser::Modl_primitiveContext
- Defined in:
- lib/modl/parser/MODLParser.rb
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #enter_rule(listener) ⇒ Object
- #exit_rule(listener) ⇒ Object
- #FALSE ⇒ Object
- #getRuleIndex ⇒ Object
-
#initialize(parent, invokingState) ⇒ Modl_primitiveContext
constructor
A new instance of Modl_primitiveContext.
- #NULL ⇒ Object
- #NUMBER ⇒ Object
- #QUOTED ⇒ Object
- #STRING ⇒ Object
- #TRUE ⇒ Object
Constructor Details
#initialize(parent, invokingState) ⇒ Modl_primitiveContext
Returns a new instance of Modl_primitiveContext.
2321 2322 2323 |
# File 'lib/modl/parser/MODLParser.rb', line 2321 def initialize( parent, invokingState) super(parent, invokingState) end |
Instance Method Details
#accept(visitor) ⇒ Object
2338 2339 2340 2341 2342 2343 2344 |
# File 'lib/modl/parser/MODLParser.rb', line 2338 def accept(visitor) if ( visitor.is_a? MODLParserVisitor ) return visitor.visitModl_primitive(self) else return visitor.visit_children(self) end end |
#enter_rule(listener) ⇒ Object
2327 2328 2329 2330 2331 |
# File 'lib/modl/parser/MODLParser.rb', line 2327 def enter_rule( listener) if ( listener.is_a? MODLParserListener ) listener.enterModl_primitive(self) end end |
#exit_rule(listener) ⇒ Object
2332 2333 2334 2335 2336 |
# File 'lib/modl/parser/MODLParser.rb', line 2332 def exit_rule( listener) if ( listener.is_a? MODLParserListener ) listener.exitModl_primitive(self) end end |
#FALSE ⇒ Object
2315 2316 2317 |
# File 'lib/modl/parser/MODLParser.rb', line 2315 def FALSE() return token(MODLParser::FALSE, 0) end |
#getRuleIndex ⇒ Object
2324 2325 2326 |
# File 'lib/modl/parser/MODLParser.rb', line 2324 def getRuleIndex() return RULE_modl_primitive end |
#NULL ⇒ Object
2318 2319 2320 |
# File 'lib/modl/parser/MODLParser.rb', line 2318 def NULL() return token(MODLParser::NULL, 0) end |
#NUMBER ⇒ Object
2306 2307 2308 |
# File 'lib/modl/parser/MODLParser.rb', line 2306 def NUMBER() return token(MODLParser::NUMBER, 0) end |
#QUOTED ⇒ Object
2303 2304 2305 |
# File 'lib/modl/parser/MODLParser.rb', line 2303 def QUOTED() return token(MODLParser::QUOTED, 0) end |
#STRING ⇒ Object
2309 2310 2311 |
# File 'lib/modl/parser/MODLParser.rb', line 2309 def STRING() return token(MODLParser::STRING, 0) end |
#TRUE ⇒ Object
2312 2313 2314 |
# File 'lib/modl/parser/MODLParser.rb', line 2312 def TRUE() return token(MODLParser::TRUE, 0) end |