1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
|
# File 'lib/modl/parser/MODLParser.rb', line 1534
def modl_value_conditional()
_localctx = Modl_value_conditionalContext.new(@_ctx, @_state_number)
enter_rule(_localctx, 30, RULE_modl_value_conditional)
_la = 0
begin
_alt = 0
enter_outer_alt(_localctx, 1)
@_state_number = 221
match(LCBRAC)
@_state_number = 222
modl_condition_test()
@_state_number = 223
match(QMARK)
@_state_number = 239
@_err_handler.sync(self)
_la = @_input.la(1)
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))
@_state_number = 224
modl_value_conditional_return()
@_state_number = 232
@_err_handler.sync(self);
_alt = @_interp.adaptive_predict(@_input,30,@_ctx)
while ( _alt!=2 && _alt!=Antlr4::Runtime::ATN::INVALID_ALT_NUMBER )
if ( _alt==1 )
@_state_number = 225
match(FSLASH)
@_state_number = 226
modl_condition_test()
@_state_number = 227
match(QMARK)
@_state_number = 228
modl_value_conditional_return()
end
@_state_number = 234
@_err_handler.sync(self)
_alt = @_interp.adaptive_predict(@_input,30,@_ctx)
end
@_state_number = 235
match(FSLASH)
@_state_number = 236
match(QMARK)
@_state_number = 237
modl_value_conditional_return()
end
@_state_number = 241
match(RCBRAC)
rescue Antlr4::Runtime::RecognitionException => re
_localctx.exception = re
@_err_handler.report_error(self, re)
@_err_handler.recover(self, re)
ensure
exit_rule()
end
return _localctx
end
|