Question about parsing terminals in a text string #1573
-
Good day. I have this grammar:
I have implemented a Lexer to parse Indent and Dedent, which works just fine. Now i want to recognize sentences like
Request initialize failed with message: Errors detected in definition of Lexer: I really dont know what the issue is here. What be great if some could give me some hints Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
Hey @mnaderhirn,
So you're saying you created a specialized |
Beta Was this translation helpful? Give feedback.
-
Thank you: grammar DateGrammar entry Datum: terminal YEAR: /20[0-9]{2}/; see playground Maybe a very primitive question: |
Beta Was this translation helpful? Give feedback.
-
This grammar seems to work perfectly in the playground, but when i run a test case
, I ll get: |
Beta Was this translation helpful? Give feedback.
I've adjusted your grammar a bit - the
Text
rule didn't allow any spaces after the second word. See this playground grammar.