metormaon / flue

MIT License
1 stars 0 forks source link

Support epsilon token #20

Closed metormaon closed 3 years ago

yossigil commented 3 years ago

Not a token "pseudo-token"

metormaon commented 3 years ago

It's a dedicated Token constant. Does it answer the term pseudo-token?

yossigil commented 3 years ago

I have second thoughts. Not sure about this. We probably need an EPSILON in the EBNF. So, perhaps it should be sort of a token. Its behavior may be different for FIRST/FOLLOW, but I am not 100% sure.

yossigil commented 3 years ago

Also, consider using symbol ε, in Unicode. We want to be cute, not too useful :-)

metormaon commented 3 years ago

I indeed used the Unicode character. And already implemented first() and nullable() with it.

yossigil commented 3 years ago

10x; is this is done, then close it.

yossigil commented 3 years ago

Great.

yossigil commented 3 years ago

Done