org.kiama.example.oberon0.base

TransformingDriver

trait TransformingDriver extends Driver

A driver for an artefact that parses, pretty prints, performs semantic analysis and transforms.

Self Type
TransformingDriver with RegexParsers with SourcePrettyPrinter with SymbolTable with Analyser with Transformer
Linear Supertypes
Driver, PrettyPrinter, PrettyPrinterBase, Compiler[ModuleDecl], RegexCompiler[ModuleDecl], CompilerBase[ModuleDecl], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TransformingDriver
  2. Driver
  3. PrettyPrinter
  4. PrettyPrinterBase
  5. Compiler
  6. RegexCompiler
  7. CompilerBase
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class Doc extends ((output.PrettyPrinter.Indent, output.PrettyPrinter.Width)) ⇒ ((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ output.PrettyPrinter.Layout) ⇒ (Int) ⇒ output.PrettyPrinter.Layout)]) ⇒ (Int) ⇒ output.PrettyPrinter.Layout) ⇒ (Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ output.PrettyPrinter.Layout) ⇒ (Int) ⇒ output.PrettyPrinter.Layout)]) ⇒ (Int) ⇒ output.PrettyPrinter.Layout with output.PrettyPrinter.DocOps

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  2. trait DocOps extends AnyRef

    Definition Classes
    PrettyPrinterBase
  3. type Indent = Int

    Definition Classes
    PrettyPrinterBase
  4. type Layout = String

    Definition Classes
    PrettyPrinterBase
  5. trait PrettyPrintable extends AnyRef

    Definition Classes
    PrettyPrinterBase
  6. type Width = Int

    Definition Classes
    PrettyPrinterBase

Abstract Value Members

  1. abstract def artefact: String

    The name of this artefact.

    The name of this artefact.

    Definition Classes
    Driver
  2. abstract def parser: (TransformingDriver.this)#Parser[ModuleDecl]

    Definition Classes
    RegexCompiler

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def angles(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  7. def any(a: Any): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  8. implicit def anyToPrettyPrintable(a: Any): (TransformingDriver.this)#PrettyPrintable

    Definition Classes
    PrettyPrinterBase
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def backslash: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  11. def braces(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  12. def brackets(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  13. def cat(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  14. var challengeFlag: Boolean

    Definition Classes
    Driver
  15. val challengeFlagDefault: Boolean

    Definition Classes
    Driver
  16. implicit def char(c: Char): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  17. def checkargs(args: Array[String], emitter: Emitter): Array[String]

    Process the command-line arguments and return an array of the input file names if processing should continue, None otherwise.

    Process the command-line arguments and return an array of the input file names if processing should continue, None otherwise.

    Definition Classes
    Driver → CompilerBase
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def colon: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  20. def comma: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  21. def compile(args: Array[String], console: Console): String

    Definition Classes
    CompilerBase
  22. def consumeast(ast: ModuleDecl, console: Console, emitter: Emitter): Unit

    Process the AST, returning the new one.

    Process the AST, returning the new one. By default, do nothing.

    Definition Classes
    Driver
  23. val defaultIndent: Int

    Definition Classes
    PrettyPrinterBase
  24. val defaultWidth: Int

    Definition Classes
    PrettyPrinterBase
  25. def dot: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  26. def dquote: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  27. def dquotes(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  28. def driver(args: Array[String], console: Console, emitter: Emitter): Unit

    Custom driver for section tagging and challenge mode for errors.

    Custom driver for section tagging and challenge mode for errors. If a parse error occurs: in challenge mode, just send "parse failed" to standard output, otherwise send the message to the errors file.

    Definition Classes
    Driver → CompilerBase
  29. def empty: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  30. def enclose(l: (TransformingDriver.this)#Doc, d: (TransformingDriver.this)#Doc, r: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  31. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. def equal: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  33. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  34. def fillcat(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  35. def fillsep(ds: Seq[(TransformingDriver.this)#Doc], sep: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  36. def fillsep(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  37. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def forwslash: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  39. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  40. def group(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  41. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  42. def hcat(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  43. var helpFlag: Boolean

    Definition Classes
    Driver
  44. val helpFlagDefault: Boolean

    Definition Classes
    Driver
  45. def hsep(ds: Seq[(TransformingDriver.this)#Doc], sep: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  46. def hsep(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  47. def initialiseSemanticAnalysis: Unit

    Perform initialisation of semantic analysis that is necessary before processing an AST.

    Perform initialisation of semantic analysis that is necessary before processing an AST.

    Definition Classes
    Driver
  48. var input: String

    Definition Classes
    Driver
  49. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  50. def langle: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  51. def lbrace: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  52. def lbracket: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  53. def line: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  54. def linebreak: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  55. def list[T](l: List[T], prefix: String, elemToDoc: (T) ⇒ (TransformingDriver.this)#Doc, sep: (TransformingDriver.this)#Doc, sepfn: (Seq[(TransformingDriver.this)#Doc], (TransformingDriver.this)#Doc) ⇒ (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  56. def lparen: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  57. def lsep(ds: Seq[(TransformingDriver.this)#Doc], sep: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  58. def lsep2(ds: Seq[(TransformingDriver.this)#Doc], sep: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  59. def lterm(ds: Seq[(TransformingDriver.this)#Doc], term: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  60. def main(args: Array[String]): Unit

    Definition Classes
    CompilerBase
  61. def makeast(reader: Reader, filename: String, emitter: Emitter): Either[ModuleDecl, String]

    Definition Classes
    RegexCompiler → CompilerBase
  62. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  63. def nest(d: (TransformingDriver.this)#Doc, j: (TransformingDriver.this)#Indent): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  64. final def notify(): Unit

    Definition Classes
    AnyRef
  65. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  66. def parens(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  67. def plist(l: List[(TransformingDriver.this)#PrettyPrintable], prefix: String, elemToDoc: ((TransformingDriver.this)#PrettyPrintable) ⇒ (TransformingDriver.this)#Doc, sep: (TransformingDriver.this)#Doc, sepfn: (Seq[(TransformingDriver.this)#Doc], (TransformingDriver.this)#Doc) ⇒ (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  68. var pprintastFlag: Boolean

    Definition Classes
    Driver
  69. val pprintastFlagDefault: Boolean

    Definition Classes
    Driver
  70. var pprintiastFlag: Boolean

  71. val pprintiastFlagDefault: Boolean

  72. def pretty(d: (TransformingDriver.this)#Doc, w: (TransformingDriver.this)#Width): (TransformingDriver.this)#Layout

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  73. def pretty(p: (TransformingDriver.this)#PrettyPrintable): (TransformingDriver.this)#Layout

    Definition Classes
    PrettyPrinterBase
  74. def pretty_any(a: Any): (TransformingDriver.this)#Layout

    Definition Classes
    PrettyPrinterBase
  75. var printastFlag: Boolean

    Definition Classes
    Driver
  76. val printastFlagDefault: Boolean

    Definition Classes
    Driver
  77. var printiastFlag: Boolean

  78. val printiastFlagDefault: Boolean

  79. def process(ast: ModuleDecl, console: Console, emitter: Emitter): Boolean

    Process the given abstract syntax tree.

    Process the given abstract syntax tree. Send output to emitter, marking sections so that we can split things later.

    Definition Classes
    Driver → Compiler → CompilerBase
  80. def processargs(args: List[String]): Boolean

    Definition Classes
    TransformingDriverDriver
  81. def processast(ast: ModuleDecl, console: Console, emitter: Emitter): ModuleDecl

    Process the AST by transforming it.

    Process the AST by transforming it. Then apply higher-level transformations.

    Definition Classes
    TransformingDriverDriver
  82. def rangle: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  83. def rbrace: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  84. def rbracket: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  85. def resetflags(): Unit

    Definition Classes
    TransformingDriverDriver
  86. def rparen: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  87. def section(emitter: Emitter, name: String): Unit

    Output a section heading so that the output can be split later.

    Output a section heading so that the output can be split later.

    Definition Classes
    Driver
  88. def semi: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  89. def sep(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  90. def softbreak: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  91. def softline: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  92. def space: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  93. def spaces(n: Int): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  94. def squote: (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  95. def squotes(d: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  96. def ssep(ds: Seq[(TransformingDriver.this)#Doc], sep: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  97. def sterm(ds: Seq[(TransformingDriver.this)#Doc], term: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  98. def string(s: String): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  99. def surround(d: (TransformingDriver.this)#Doc, b: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  100. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  101. implicit def text(t: String): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  102. def toString(): String

    Definition Classes
    AnyRef → Any
  103. def usageMessage: String

    Definition Classes
    TransformingDriverDriver
  104. def value(v: Any): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  105. def vcat(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  106. def vsep(ds: Seq[(TransformingDriver.this)#Doc], sep: (TransformingDriver.this)#Doc): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  107. def vsep(ds: Seq[(TransformingDriver.this)#Doc]): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  108. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  109. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  110. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def product(p: Any): (TransformingDriver.this)#Doc

    Definition Classes
    PrettyPrinterBase
    Annotations
    @deprecated
    Deprecated

    (Since version 1.2.1) Use PrettyPrinter.any instead.

Inherited from Driver

Inherited from PrettyPrinter

Inherited from PrettyPrinterBase

Inherited from Compiler[ModuleDecl]

Inherited from RegexCompiler[ModuleDecl]

Inherited from CompilerBase[ModuleDecl]

Inherited from AnyRef

Inherited from Any

No Group