TypeResolver icon indicating copy to clipboard operation
TypeResolver copied to clipboard

Build a Lexer based on Doctrine/Lexer

Open mvriel opened this issue 5 years ago • 0 comments

As an experiment, I have built a lexer for the TypeResolver using Doctrine's Lexer library. This Lexer will create tokens out of a sting representing a type.

Net step in this experiment is to build a parser, and replace the internals of the TypeResolver class to use this lexer and parser. The goal is to come to a BC-compatible solution, which can also be used to make benchmarks to see which version runs faster and is more readable.

mvriel avatar Mar 03 '20 10:03 mvriel