Method: MODL::Parser::MODLParser#modl_top_level_conditional_return

Defined in:
lib/modl/parser/MODLParser.rb

#modl_top_level_conditional_returnObject



976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
# File 'lib/modl/parser/MODLParser.rb', line 976

def modl_top_level_conditional_return()
	_localctx =  Modl_top_level_conditional_returnContext.new(@_ctx, @_state_number)
	enter_rule(_localctx, 16, RULE_modl_top_level_conditional_return)
	_la = 0
	begin
		enter_outer_alt(_localctx, 1)

		@_state_number = 166
		@_err_handler.sync(self)
		_la = @_input.la(1)
     while ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << LBRAC) | (1 << LSBRAC) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))


			@_state_number = 163
			modl_structure()
			@_state_number = 168
			@_err_handler.sync(self)
			_la = @_input.la(1)
     end
	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