Boo.Lang.Parser.BooLexer.mHEXDIGIT C# (CSharp) Method

mHEXDIGIT() protected method

protected mHEXDIGIT ( bool _createToken ) : void
_createToken bool
return void
        protected void mHEXDIGIT(bool _createToken)
        {
            int _ttype; IToken _token=null; int _begin=text.Length;
            _ttype = HEXDIGIT;

            {
            switch ( cached_LA1 )
            {
            case 'a':  case 'b':  case 'c':  case 'd':
            case 'e':  case 'f':
            {
                matchRange('a','f');
                break;
            }
            case 'A':  case 'B':  case 'C':  case 'D':
            case 'E':  case 'F':
            {
                matchRange('A','F');
                break;
            }
            case '0':  case '1':  case '2':  case '3':
            case '4':  case '5':  case '6':  case '7':
            case '8':  case '9':
            {
                matchRange('0','9');
                break;
            }
            default:
            {
                throw new NoViableAltForCharException(cached_LA1, getFilename(), getLine(), getColumn());
            }
             }
            }
            if (_createToken && (null == _token) && (_ttype != Token.SKIP))
            {
            _token = makeToken(_ttype);
            _token.setText(text.ToString(_begin, text.Length-_begin));
            }
            returnToken_ = _token;
        }