Exemple #1
0
        public iCalendar  icalobject() //throws RecognitionException, TokenStreamException
        {
            iCalendar iCal = (iCalendar)Activator.CreateInstance(iCalendarType);;


            {        // ( ... )*
                for (;;)
                {
                    if ((LA(1) == BEGIN))
                    {
                        match(BEGIN);
                        match(COLON);
                        match(VCALENDAR);
                        match(CRLF);
                        icalbody(iCal);
                        match(END);
                        match(COLON);
                        match(VCALENDAR);
                        match(CRLF);
                    }
                    else
                    {
                        goto _loop3_breakloop;
                    }
                }
                _loop3_breakloop :;
            }        // ( ... )*
            iCal.OnLoad(EventArgs.Empty);
            return(iCal);
        }
Exemple #2
0
        public iCalendar  icalobject() //throws RecognitionException, TokenStreamException
        {
            iCalendar iCal = new iCalendar();;


            try {         // for error handling
                {         // ( ... )+
                    int _cnt3 = 0;
                    for (;;)
                    {
                        if ((LA(1) == BEGIN))
                        {
                            match(BEGIN);
                            match(COLON);
                            match(VCALENDAR);
                            match(CRLF);
                            icalbody(iCal);
                            match(END);
                            match(COLON);
                            match(VCALENDAR);
                            match(CRLF);
                        }
                        else
                        {
                            if (_cnt3 >= 1)
                            {
                                goto _loop3_breakloop;
                            }
                            else
                            {
                                throw new NoViableAltException(LT(1), getFilename());;
                            }
                        }

                        _cnt3++;
                    }
                    _loop3_breakloop :;
                }            // ( ... )+
                iCal.OnLoad(EventArgs.Empty);
            }
            catch (RecognitionException ex)
            {
                reportError(ex);
                recover(ex, tokenSet_0_);
            }
            return(iCal);
        }
Exemple #3
0
	public iCalendar  icalobject() //throws RecognitionException, TokenStreamException
{
		iCalendar iCal = new iCalendar();;
		
		
		try {      // for error handling
			{ // ( ... )+
				int _cnt3=0;
				for (;;)
				{
					if ((LA(1)==BEGIN))
					{
						match(BEGIN);
						match(COLON);
						match(VCALENDAR);
						match(CRLF);
						icalbody(iCal);
						match(END);
						match(COLON);
						match(VCALENDAR);
						match(CRLF);
					}
					else
					{
						if (_cnt3 >= 1) { goto _loop3_breakloop; } else { throw new NoViableAltException(LT(1), getFilename());; }
					}
					
					_cnt3++;
				}
_loop3_breakloop:				;
			}    // ( ... )+
			iCal.OnLoad(EventArgs.Empty);
		}
		catch (RecognitionException ex)
		{
			reportError(ex);
			recover(ex,tokenSet_0_);
		}
		return iCal;
	}