Skip to content

Prevents matching partial words in lexer #4772

Closed Answered by kaby76
MihaMarkic asked this question in Q&A
Discussion options

You must be logged in to vote

With input printxxx lexer will create both PRINT and STRING tokens.

No, it doesn't. See below.

02/13-14:41:15 ~/issues/a4-4772
$ !trgen
trgen -t CSharp
CSharp  G.g4 success 0.0339229
Rendering template file from CSharp/MyParserInterpreter.cs to ./Generated-CSharp/MyParserInterpreter.cs
Rendering template file from CSharp/Other.csproj to ./Generated-CSharp/Other.csproj
Rendering template file from CSharp/st.build.ps1 to ./Generated-CSharp/st.build.ps1
Rendering template file from CSharp/st.build.sh to ./Generated-CSharp/st.build.sh
Rendering template file from CSharp/st.clean.ps1 to ./Generated-CSharp/st.clean.ps1
Rendering template file from CSharp/st.clean.sh to ./Generated-CSharp/st.c…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MihaMarkic
Comment options

@MihaMarkic
Comment options

Answer selected by MihaMarkic
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