Mirinth / Plexiglass

A lexer generator, in the spirit of GNU Flex.
Other
0 stars 0 forks source link

Prune unused expressions #71

Open Mirinth opened 3 years ago

Mirinth commented 3 years ago

This might make things more efficient, but it's an optimization, and Plexi 1.0 won't be very efficient anyway. I'm putting it off until a later release.

Mirinth commented 2 years ago

Actually, unused expressions don't even appear in the generated lexer, so this optimization wouldn't even do anything.

Once #131 comes in, the unused expressions will actually appear, but an optimizing compiler will just discard them, so this still won't even do anything.

Maybe it can do a semantic check for unused expressions later.