Lexer: what means "matches no string"?

ceving
Mon, 27 Nov 2023 20:57:28 +0000
Questions & Answers

nothing
A lexer abbreviation that matches no string.

I am not sure if this means never or always.

If "no string" is an empty string, this would match always. In that case I would like to know how to stop endless recursion? Is it possible to create a stateful lexer?

If it matches never, I would like to know why this is useful?

3 posts - 3 participants