Class RStringLiteral


public class RStringLiteral extends RegularExpression_
Describes string literals.
  • Field Details

    • image

      public String image
      The string image of the literal
    • allImages

      public static String[] allImages
  • Constructor Details

    • RStringLiteral

      public RStringLiteral()
      Standard constructor
    • RStringLiteral

      public RStringLiteral(Token t, String im)
      Constructor with parameters.
      Parameters:
      t - - the token
      im - - the token image
  • Method Details

    • ReInit

      public static void ReInit()
      Initialize all the static variables, so that there is no interference between the various states of the lexer. Need to call this method after generating code for each lexical state.
    • dump

      public StringBuilder dump(int indent, Set<Object> alreadyDumped)
      Overrides:
      dump in class RegularExpression_
      Parameters:
      indent - - the number of spaces for indenting
      alreadyDumped - - a Set of objects already dumped (unused)
      Returns:
      the formatted string dumping the class
    • toString

      public String toString()
      Overrides:
      toString in class Expansion_