@Test @DisplayName("The lexer returns identifiers that may contain . and ( and ) and , ") void testIdentifiers() { final var lexer = new Lexer("identif module.java me.thod(vara , varb)"); testWord(lexer, "identif"); final var space = lexer.get(); Assertions.assertEquals(Lexeme.Type.SPACE,space.type); testWord(lexer, "module.java"); lexer.get(); testWord(lexer, "me.thod(vara,varb)"); }
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();  }