Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add references to lexer modes and custom token patterns to the lexer tutorial #1030

Merged
merged 1 commit into from
Sep 3, 2019
Merged

Add references to lexer modes and custom token patterns to the lexer tutorial #1030

merged 1 commit into from
Sep 3, 2019

Conversation

HoldYourWaffle
Copy link
Contributor

As discussed in #1027.

I'm not completely satisfied with this text, but it serves its purpose I think.

@HoldYourWaffle
Copy link
Contributor Author

I just noticed something: the tutorial page says the lexer is stateless, but how can it be stateless if it supports multi-mode lexing?

@bd82
Copy link
Member

bd82 commented Sep 2, 2019

I just noticed something: the tutorial page says the lexer is stateless, but how can it be stateless if it supports multi-mode lexing?

Good catch 👍

Maybe it is more correct to say the tokenize method is a pure function.

@bd82 bd82 merged commit b19a279 into Chevrotain:master Sep 3, 2019
@bd82
Copy link
Member

bd82 commented Sep 3, 2019

2c52e88

@HoldYourWaffle HoldYourWaffle deleted the lexer-doc-notes branch September 3, 2019 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants