@Override
public Token action(Matcher matcher, Lexer lexer, Type<Double> type) {
return new Token(new Double(matcher.group()), type);
}
}));
lexer.addDescender("Parentheses", new Descender("(", ")", new Type<Token>("Parentheses"), null));
lexer.addDescender("Brackets", new Descender("[", "]", new Type<Token>("Brackets"), null));
lexer.ignore("\n");
String test = "10.0 100 (3.0 300\n) [51 5 6] ()";
try {
System.out.println(test + " -> " + lexer.lex(test));
}