Boo.Lang.Parser.BooParserBase.macro_name C# (CSharp) Method

macro_name() protected method

protected macro_name ( ) : antlr.antlr.IToken
return antlr.antlr.IToken
        protected antlr.IToken macro_name()
        {
            antlr.IToken name;

            IToken  id = null;
            IToken  then = null;

            name = null;

            try {      // for error handling
            switch ( LA(1) )
            {
            case ID:
            {
                id = LT(1);
                match(ID);
                if (0==inputState.guessing)
                {
                    name = id;
                }
                break;
            }
            case THEN:
            {
                then = LT(1);
                match(THEN);
                if (0==inputState.guessing)
                {
                    name = then;
                }
                break;
            }
            default:
            {
                throw new NoViableAltException(LT(1), getFilename());
            }
             }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex, "macro_name");
                recover(ex,tokenSet_13_);
            }
            else
            {
                throw ex;
            }
            }
            return name;
        }
BooParserBase