Questions tagged [jlex]

JLex is a lexer generator for Java. Not to be confused with JFlex, a more up-to-date faster and more featureful rewrite.

JLex is a lexer generator for Java. Its most recent version has been released in 2003 and , a more up-to-date, faster and more featureful rewrite of it should generally be used instead.

Links

3 questions
0
votes
1 answer

JLEX lexical generator error: unterminated string at the end of the line

I am generating lexical analyzer with JLEX. I found a regular expression for string literal from this link and used it in .jflex file same of other expressions. but it gives me this error : unterminated string at the end of the line StringLiteral =…
user9137963
  • 105
  • 9
0
votes
2 answers

How can i select specific word in Regular Expression Jlex?

I want to select the word "String" from the line "String helloString String Stringhello helloStringhello". Here should selected the 2 words "String"(first and the middle) "String" in "helloString" or "Stringhello" or "helloStringhello" shouldn't…
Adham Mostafa
  • 33
  • 2
  • 6
-2
votes
1 answer

Regex to match strings in JLex

I'm trying to fix this regex, it's meant to match any string of characters except unescaped quotation marks and unescaped newline characters: ([^"]|\\"|[^\n]|\\n)* Would anyone mind helping out? For example I would want to match: The cow jumped…
edd91
  • 185
  • 8