Beispiel #1
0
        /// <summary> returns the lexer that's gonna parse a octal integer number (valid patterns are: 0, 07, 017, 0371 jfun.yan.etc.),
        /// and convert the string to a Long token.
        /// an octal number has to start with 0.
        /// </summary>
        /// <returns> the lexer.
        /// </returns>
        public static Lexer LexOctLong()
        {
            string name = "oct integer literal";

            return(Lex(Scanners.Delimited(Scanners.IsPattern(name, Patterns.IsOctInteger(), "octInteger")),
                       Tokenizers.ForOctLong).Rename(name));
        }