Antlr3.Tool.Grammar.IsAtomTokenType C# (CSharp) Method

IsAtomTokenType() public method

public IsAtomTokenType ( int ttype ) : bool
ttype int
return bool
        public virtual bool IsAtomTokenType( int ttype )
        {
            return ttype == ANTLRParser.WILDCARD ||
                   ttype == ANTLRParser.CHAR_LITERAL ||
                   ttype == ANTLRParser.CHAR_RANGE ||
                   ttype == ANTLRParser.STRING_LITERAL ||
                   ttype == ANTLRParser.NOT ||
                   ( type != GrammarType.Lexer && ttype == ANTLRParser.TOKEN_REF );
        }
Grammar