Class Lexer

java.lang.Object
eu.bandm.tools.formattext.Lexer

public class Lexer extends Object
The lexer which accepts the terminal symbols which are common to all application cases.
  • Method Details

    • extractLiteralContents

      public static String extractLiteralContents(String tokenContents)
      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