Match and tokenize all text in Lexer as one token until a certain string in ANTLR4

后端 未结 0 1350
耶瑟儿~
耶瑟儿~ 2021-01-16 23:13

What is the proper lexer rule in ANTLR4 to match an arbitrary string until the stream contains a certain multi-character string ?

E.g. in the CharStream I have:

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题