org.kiama.example.oberon0.base

Driver

trait Driver extends Compiler[ModuleDecl] with PrettyPrinter

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

Self Type
Driver with RegexParsers with SourcePrettyPrinter with SymbolTable with Analyser
Linear Supertypes
PrettyPrinter, PrettyPrinterBase, Compiler[ModuleDecl], RegexCompiler[ModuleDecl], CompilerBase[ModuleDecl], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Driver
  2. PrettyPrinter
  3. PrettyPrinterBase
  4. Compiler
  5. RegexCompiler
  6. CompilerBase
  7. AnyRef
  8. 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.

  2. abstract def parser: (Driver.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: (Driver.this)#Doc): (Driver.this)#Doc

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

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

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

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

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

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

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

    Definition Classes
    PrettyPrinterBase
  14. var challengeFlag: Boolean

  15. val challengeFlagDefault: Boolean

  16. implicit def char(c: Char): (Driver.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: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  20. def comma: (Driver.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.

  23. val defaultIndent: Int

    Definition Classes
    PrettyPrinterBase
  24. val defaultWidth: Int

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

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

    Definition Classes
    PrettyPrinterBase
  27. def dquotes(d: (Driver.this)#Doc): (Driver.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: (Driver.this)#Doc

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

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

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

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

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

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

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

    Definition Classes
    PrettyPrinterBase
  37. def finalize(): Unit

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

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

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

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

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

    Definition Classes
    PrettyPrinterBase
  43. var helpFlag: Boolean

  44. val helpFlagDefault: Boolean

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

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

    Definition Classes
    PrettyPrinterBase
  47. def initialiseSemanticAnalysis: Unit

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

  48. var input: String

  49. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

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

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

    Definition Classes
    PrettyPrinterBase
  59. def lterm(ds: Seq[(Driver.this)#Doc], term: (Driver.this)#Doc): (Driver.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: (Driver.this)#Doc, j: (Driver.this)#Indent): (Driver.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: (Driver.this)#Doc): (Driver.this)#Doc

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

    Definition Classes
    PrettyPrinterBase
  68. var pprintastFlag: Boolean

  69. val pprintastFlagDefault: Boolean

  70. def pretty(d: (Driver.this)#Doc, w: (Driver.this)#Width): (Driver.this)#Layout

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

    Definition Classes
    PrettyPrinterBase
  72. def pretty_any(a: Any): (Driver.this)#Layout

    Definition Classes
    PrettyPrinterBase
  73. var printastFlag: Boolean

  74. val printastFlagDefault: Boolean

  75. 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
  76. def processargs(args: List[String]): Boolean

  77. def processast(ast: ModuleDecl, console: Console, emitter: Emitter): ModuleDecl

    Process the AST, returning the new one.

    Process the AST, returning the new one. By default, return the AST unchanged.

  78. def rangle: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  79. def rbrace: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  80. def rbracket: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  81. def resetflags(): Unit

  82. def rparen: (Driver.this)#Doc

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

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

  84. def semi: (Driver.this)#Doc

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

    Definition Classes
    PrettyPrinterBase
  86. def softbreak: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  87. def softline: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  88. def space: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  89. def spaces(n: Int): (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  90. def squote: (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  91. def squotes(d: (Driver.this)#Doc): (Driver.this)#Doc

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

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

    Definition Classes
    PrettyPrinterBase
  94. def string(s: String): (Driver.this)#Doc

    Definition Classes
    PrettyPrinterBase
  95. def surround(d: (Driver.this)#Doc, b: (Driver.this)#Doc): (Driver.this)#Doc

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

    Definition Classes
    AnyRef
  97. implicit def text(t: String): (Driver.this)#Doc

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

    Definition Classes
    AnyRef → Any
  99. def usageMessage: String

  100. def value(v: Any): (Driver.this)#Doc

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

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

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

    Definition Classes
    PrettyPrinterBase
    Annotations
    @deprecated
    Deprecated

    (Since version 1.2.1) Use PrettyPrinter.any instead.

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