Skip to content

Accept more character types for GenericToken.Identifier #468

Closed Answered by b3b00
jbartlau asked this question in Q&A
Discussion options

You must be logged in to vote

hello @jbartlau , there is no regex matching. In fact the lexer builder parse the pattern and build an FSM as you would with a lexer extension. So there is no particular perfomance concern.

Regarding your experiment with lexer extension, I agree that is not the easier part of generic lexer. You've just tried to reuse the existing FSM for your need but you have to write your own FSM from scratch to match your pattern.

I've commited a sample with test cases. see 71145ac

I would recommend that you use the customId instead of an extension that is not that easy to understand.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jbartlau
Comment options

@b3b00
Comment options

b3b00 Aug 1, 2024
Maintainer

Answer selected by jbartlau
@jbartlau
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants