891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
|
# File 'lib/modl/parser/MODLParser.rb', line 891
def modl_top_level_conditional()
_localctx = Modl_top_level_conditionalContext.new(@_ctx, @_state_number)
enter_rule(_localctx, 14, RULE_modl_top_level_conditional)
_la = 0
begin
enter_outer_alt(_localctx, 1)
@_state_number = 146
match(LCBRAC)
@_state_number = 147
modl_condition_test()
@_state_number = 148
match(QMARK)
@_state_number = 149
modl_top_level_conditional_return()
@_state_number = 158
@_err_handler.sync(self)
_la = @_input.la(1)
while (_la==FSLASH)
@_state_number = 150
match(FSLASH)
@_state_number = 152
@_err_handler.sync(self)
_la = @_input.la(1)
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << EQUALS) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC) | (1 << GTHAN) | (1 << LTHAN) | (1 << EXCLAM))) != 0))
@_state_number = 151
modl_condition_test()
end
@_state_number = 154
match(QMARK)
@_state_number = 155
modl_top_level_conditional_return()
@_state_number = 160
@_err_handler.sync(self)
_la = @_input.la(1)
end
@_state_number = 161
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
|