On Saturday, 3 July 2021 at 09:05:28 UTC, vnr wrote:
Hello,I am trying to make a small generic lexer that bases its token analysis on regular expressions. The principle I have in mind is to define a token type table with its corresponding regular expression, here is the code I currently have:[...]
storing the regex in a token is an antipattern.