public static void ScanPipeline(Lexer lexer, ref Token token) { #if DEBUG if (lexer == null) { throw new ArgumentNullException(nameof(lexer)); } Scanner.EnsureCurrent(lexer, '|'); #endif token.Type = Scanner.GetTokenType(lexer, '|', TokenType.PipePipe, TokenType.Pipeline); }
public static void ScanGreaterThan(Lexer lexer, ref Token token) { #if DEBUG if (lexer == null) { throw new ArgumentNullException(nameof(lexer)); } Scanner.EnsureCurrent(lexer, '>'); #endif token.Type = Scanner.GetTokenType(lexer, '=', TokenType.GreaterThanOrEquals, TokenType.GreaterThan); }
public static void ScanAmpersand(Lexer lexer, ref Token token) { #if DEBUG if (lexer == null) { throw new ArgumentNullException(nameof(lexer)); } Scanner.EnsureCurrent(lexer, '&'); #endif token.Type = Scanner.GetTokenType(lexer, '&', TokenType.AmpAmp, TokenType.Ampersand); }