Skip to content

External lexer for extras comment #884

Answered by maxbrunsfeld
haxscramper asked this question in Q&A
Discussion options

You must be logged in to vote

The names in the token enum don’t matter; the order corresponds to the ordering of the externals array.

I think your external scanner just needs to handle white space. White space is not automatically skipped, because sometimes it plays a role in scanners’ token selection logic.

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@carueda
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by haxscramper
Comment options

You must be logged in to vote
8 replies
@haxscramper
Comment options

@maxbrunsfeld
Comment options

@haxscramper
Comment options

@maxbrunsfeld
Comment options

@haxscramper
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants