Package eu.bandm.tools.formattext
Class Lexer
java.lang.Object
eu.bandm.tools.formattext.Lexer
The lexer which accepts the terminal symbols which are common
to all application cases.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractLiteralContents(String tokenContents) Extract the intended contents of a literal token.
-
Method Details
-
extractLiteralContents
Extract the intended contents of a literal token. Skip the framing quote signs and resolve the escapted quote signs within.Only the escape sequence »
\'« is supported.- Parameters:
tokenContents- text as read from the token object- Returns:
- the extracted and expanded text
-