@Test @DisplayName("Test the lexer returning EOF multiple times when input is empty") void testNullInput() { final var lexer = new Lexer(""); final var lexeme = lexer.get(); Assertions.assertEquals(lexeme.type, Lexeme.Type.EOF); }
public Lexeme get() { final var ret = lookAhead != null ? lookAhead : next(); lookAhead = next(); return ret; }
Lexer { public Lexeme get() { final var ret = lookAhead != null ? lookAhead : next(); lookAhead = next(); return ret; } }
Lexer { public Lexeme get() { final var ret = lookAhead != null ? lookAhead : next(); lookAhead = next(); return ret; } Lexer(final String input);  Lexer(final String input, boolean selectorExpression); }
Lexer { public Lexeme get() { final var ret = lookAhead != null ? lookAhead : next(); lookAhead = next(); return ret; } Lexer(final String input);  Lexer(final String input, boolean selectorExpression); @Override String toString(); String rest(); Lexeme get(); Lexeme peek(); }
Lexer { public Lexeme get() { final var ret = lookAhead != null ? lookAhead : next(); lookAhead = next(); return ret; } Lexer(final String input);  Lexer(final String input, boolean selectorExpression); @Override String toString(); String rest(); Lexeme get(); Lexeme peek();  }