Class Python3Target

java.lang.Object
org.antlr.v4.codegen.Target
org.antlr.v4.codegen.target.Python3Target

public class Python3Target extends Target
  • Field Details

    • reservedWords

      protected static final HashSet<String> reservedWords
    • targetCharValueEscape

      protected static final Map<Character,String> targetCharValueEscape
  • Constructor Details

  • Method Details

    • getTargetCharValueEscape

      public Map<Character,String> getTargetCharValueEscape()
      Description copied from class: Target
      For pure strings of Unicode char, how can we display it in the target language as a literal. Useful for dumping predicates and such that may refer to chars that need to be escaped when represented as strings. Also, templates need to be escaped so that the target language can hold them as a string. Each target can have a different set in memory at same time.
      Overrides:
      getTargetCharValueEscape in class Target
    • getReservedWords

      protected Set<String> getReservedWords()
      Specified by:
      getReservedWords in class Target
    • wantsBaseListener

      public boolean wantsBaseListener()
      Overrides:
      wantsBaseListener in class Target
    • wantsBaseVisitor

      public boolean wantsBaseVisitor()
      Overrides:
      wantsBaseVisitor in class Target
    • supportsOverloadedMethods

      public boolean supportsOverloadedMethods()
      Overrides:
      supportsOverloadedMethods in class Target