org.kiama.example.oberon0.drivers

A4Tests

class A4Tests extends A4Phases with TranslatingTestDriver

Annotations
@RunWith()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. A4Tests
  2. TranslatingTestDriver
  3. TestDriver
  4. TestCompiler
  5. FunSuite
  6. Suite
  7. Serializable
  8. AbstractSuite
  9. Assertions
  10. A4Phases
  11. PrettyPrinter
  12. PrettyPrinter
  13. PrettyPrinter
  14. PrettyPrinter
  15. PrettyPrinter
  16. CPrettyPrinter
  17. CCodeGenerator
  18. CCodeGenerator
  19. CCodeGenerator
  20. CCodeGenerator
  21. CCodeGenerator
  22. Translator
  23. Desugarer
  24. Desugarer
  25. Lifter
  26. Transformer
  27. TypeAnalyser
  28. SymbolTable
  29. TypeAnalyser
  30. TypeAnalyser
  31. TypeAnalyser
  32. TypeAnalyser
  33. NameAnalyser
  34. NameAnalyser
  35. SymbolTable
  36. NameAnalyser
  37. NameAnalyser
  38. SymbolTable
  39. SymbolTable
  40. Environments
  41. Analyser
  42. PrettyPrinter
  43. PrettyPrinter
  44. PrettyPrinter
  45. PrettyPrinter
  46. PrettyPrinter
  47. PrettyPrinter
  48. SourcePrettyPrinter
  49. ParenPrettyPrinter
  50. Parser
  51. Parser
  52. Parser
  53. Parser
  54. Parser
  55. Parser
  56. WhitespaceParser
  57. ParserUtilities
  58. PackratParsers
  59. RegexParsers
  60. Parsers
  61. TranslatingDriver
  62. TransformingDriver
  63. Driver
  64. PrettyPrinter
  65. PrettyPrinterBase
  66. Compiler
  67. RegexCompiler
  68. CompilerBase
  69. AnyRef
  70. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new A4Tests()

Type Members

  1. abstract type ?0

    Definition Classes
    Suite
  2. case class ArrayType(size: Int, elemtype: Type) extends Type with Product with Serializable

    An array type with the given size and element type.

  3. trait Builtin extends Named

    Marker trait for all built-in entities.

  4. case class BuiltinProc(ident: String, params: List[ParamInfo]) extends Entity with NamedEntity with Builtin with Product with Serializable

    A built-in procedure with its parameter information.

  5. case class BuiltinType(ident: String) extends Type with Named with Builtin with Product with Serializable

    A built-in type with an implicit definition that the compiler must have special knowledge about.

  6. case class Constant(ident: String, decl: ConstDecl) extends Entity with NamedEntity with Product with Serializable

    A user-defined constant entity represented by a constant declaration.

  7. type Elem = Char

    Definition Classes
    RegexParsers → Parsers
  8. abstract class Entity extends AnyRef

    An entity that represents some program object.

  9. type Environment = Stack[Scope]

    An environment is a stack of scopes with the innermost scope on the top.

    An environment is a stack of scopes with the innermost scope on the top.

    Definition Classes
    Environments
  10. trait ErrorEntity extends Entity

    An entity that represents an error situation.

  11. case class Field(ident: String, tipe: Type) extends Entity with Product with Serializable

    A record field.

  12. type Indent = Int

    Definition Classes
    PrettyPrinterBase
  13. type Input = Reader[Elem]

    Definition Classes
    Parsers
  14. case class IntegerValue(ident: String, tipe: Type, value: Int) extends Entity with NamedEntity with Builtin with Product with Serializable

    A built-in value of some type that is represented by a particular integer value.

  15. type Layout = String

    Definition Classes
    PrettyPrinterBase
  16. case class Module(ident: String, decl: ModuleDecl) extends Entity with NamedEntity with Product with Serializable

    A user-defined module represented by a module declaration.

  17. trait Named extends AnyRef

    Support for unique ids for named things.

  18. trait NamedEntity extends Entity with Named

    A named entity.

  19. case class ParamInfo(mode: Mode, ident: String, tipe: Type) extends Product with Serializable

    Information about a particular parameter.

  20. case class Parameter(mode: Mode, varr: Variable) extends Entity with NamedEntity with Product with Serializable

    A parameter is a variable augmented with a passing mode.

  21. case class Procedure(ident: String, decl: ProcDecl) extends Entity with NamedEntity with Product with Serializable

    A procedure entity represented by a procedure declaration.

  22. case class RecordType(fields: List[Field]) extends Type with Product with Serializable

    A record with the given fields.

  23. type Scope = Map[String, Entity]

    A scope maps identifiers to entities.

    A scope maps identifiers to entities.

    Definition Classes
    Environments
  24. abstract class Type extends Entity

    An entity representing by a user-provided type declaration.

  25. case class UserType(ident: String, tipe: TypeDecl) extends Type with Named with Product with Serializable

    A user-defined type.

  26. case class Variable(ident: String, tipe: TypeDef) extends Entity with NamedEntity with Product with Serializable

    A variable entity including a reference to its types' definition.

  27. type Width = Int

    Definition Classes
    PrettyPrinterBase
  28. abstract type _$4

    Definition Classes
    PackratParsers
  29. abstract type _$4

    Definition Classes
    PackratParsers
  30. abstract type _$4

    Definition Classes
    PackratParsers
  31. abstract type _$5

    Definition Classes
    PackratParsers
  32. abstract type _$5

    Definition Classes
    PackratParsers
  33. abstract type _$5

    Definition Classes
    PackratParsers
  34. abstract type _$6

    Definition Classes
    PackratParsers
  35. abstract type _$6

    Definition Classes
    PackratParsers
  36. abstract type _$6

    Definition Classes
    PackratParsers
  37. abstract type _$7

    Definition Classes
    PackratParsers
  38. abstract type _$7

    Definition Classes
    PackratParsers
  39. abstract type _$7

    Definition Classes
    PackratParsers
  40. abstract type _$8

    Definition Classes
    PackratParsers
  41. abstract type _$8

    Definition Classes
    PackratParsers
  42. abstract type _$8

    Definition Classes
    PackratParsers
  43. abstract type _$9

    Definition Classes
    PackratParsers
  44. abstract type _$9

    Definition Classes
    PackratParsers
  45. abstract type _$9

    Definition Classes
    PackratParsers

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. object MultipleEntity extends Entity with ErrorEntity with Product with Serializable

    A entity represented by names for whom we have seen more than one declaration so we are unsure what is being represented.

  7. object Named extends AnyRef

    Static support for entity names.

  8. def OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

    Definition Classes
    Parsers
  9. def Parser[T](f: (Input) ⇒ ParseResult[T]): Parser[T]

    Definition Classes
    Parsers
  10. object UnknownEntity extends Entity with ErrorEntity with Product with Serializable

    An unknown entity, represented by names whose declarations are missing.

  11. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Definition Classes
    Parsers
  12. def accept[ES](es: ES)(implicit arg0: (ES) ⇒ List[Elem]): Parser[List[Elem]]

    Definition Classes
    Parsers
  13. implicit def accept(e: Elem): Parser[Elem]

    Definition Classes
    Parsers
  14. def acceptIf(p: (Elem) ⇒ Boolean)(err: (Elem) ⇒ String): Parser[Elem]

    Definition Classes
    Parsers
  15. def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

    Definition Classes
    Parsers
  16. def acceptSeq[ES](es: ES)(implicit arg0: (ES) ⇒ Iterable[Elem]): Parser[List[Elem]]

    Definition Classes
    Parsers
  17. def angles(d: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  18. def any: PackratParser[Char]

    Definition Classes
    ParserUtilities
  19. implicit def anyToPrettyPrintable(a: Any): PrettyPrintable

    Definition Classes
    PrettyPrinterBase
  20. val argparser: ArgotParser

    Definition Classes
    Driver
  21. def arraydimensToDoc(t1: CArrayType): Doc

    Definition Classes
    PrettyPrinter
  22. def artefact: String

    The name of this artefact.

    The name of this artefact.

    Definition Classes
    A4PhasesDriver
  23. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  24. def assert(o: Option[String]): Unit

    Definition Classes
    Assertions
  25. def assert(o: Option[String], clue: Any): Unit

    Definition Classes
    Assertions
  26. def assert(condition: Boolean, clue: Any): Unit

    Definition Classes
    Assertions
  27. def assert(condition: Boolean): Unit

    Definition Classes
    Assertions
  28. lazy val assignment: Parser[Assignment]

    Definition Classes
    Parser
  29. def backslash: Doc

    Definition Classes
    PrettyPrinterBase
  30. lazy val basetype: (Expression) ⇒ Type

    The actual type of an expression following type aliases.

    The actual type of an expression following type aliases.

    Definition Classes
    TypeAnalyser
  31. def basetypeToDoc(t: CType): Doc

  32. lazy val block: Parser[Block]

    Definition Classes
    Parser
  33. def blockToDoc(b: Block, beginend: Boolean = false): Doc

    Pretty-print a block, omitting the BEGIN if there are no statements.

    Pretty-print a block, omitting the BEGIN if there are no statements. Add the possibility of declarations to the previous level.

    Definition Classes
    PrettyPrinterPrettyPrinter
  34. lazy val booleanType: BuiltinType

    Built-in Boolean type.

    Built-in Boolean type.

    Definition Classes
    SymbolTable
  35. def braces(d: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  36. def bracket(inner: PrettyOperatorExpression, outer: PrettyOperatorExpression, side: Side): Doc

    Definition Classes
    ParenPrettyPrinter
  37. def brackets(d: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  38. lazy val caseStatement: Parser[CaseStatement]

    Definition Classes
    Parser
  39. def caseToDoc(s: CaseStatement): Doc

    Definition Classes
    PrettyPrinter
  40. lazy val cases: Parser[List[Case]]

    Definition Classes
    Parser
  41. def casesToDoc(l: List[Case]): Doc

    Definition Classes
    PrettyPrinter
  42. def casesToIf(ce: IdnExp, cases: List[Case], optelse: Option[Block]): IfStatement

    Return an IF cascade equivaleant to the given cases and optional else block.

    Return an IF cascade equivaleant to the given cases and optional else block. The variable ce holds the selection value. Specifically, these cases on ce CASE e1 : s1 CASE e2 .. e3 : s2 ELSE s3 are transformed into IF ce = e1 THEN s1 ELSEIF (ce >= e2) & (ce <= e3) THEN s2 ELSE 32 END If a case has more than one condition then they are combined with Or operators.

    Definition Classes
    Desugarer
  43. def cat(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  44. def chainl1[T, U](first: ⇒ Parser[T], p: ⇒ Parser[U], q: ⇒ Parser[(T, U) ⇒ T]): Parser[T]

    Definition Classes
    Parsers
  45. def chainl1[T](p: ⇒ Parser[T], q: ⇒ Parser[(T, T) ⇒ T]): Parser[T]

    Definition Classes
    Parsers
  46. def chainr1[T, U](p: ⇒ Parser[T], q: ⇒ Parser[(T, U) ⇒ U], combine: (T, U) ⇒ U, first: U): Parser[U]

    Definition Classes
    Parsers
  47. val challenge: FlagOption[Boolean]

    Definition Classes
    Driver
  48. implicit def char(c: Char): Doc

    Definition Classes
    PrettyPrinterBase
  49. def check(n: SourceASTNode): Unit

    Check an AST node for semantic errors.

    Check an AST node for semantic errors. Report any errors using the messaging module. This default implementation just ask the node's children to check themselves.

    Definition Classes
    TypeAnalyserTypeAnalyserNameAnalyserTypeAnalyserTypeAnalyserNameAnalyserAnalyser
  50. def checkNonLocalVarAccess(u: IdnUse): Unit

    Check for non-local variable and procedure accesses.

    Check for non-local variable and procedure accesses. In the L3 language non-local variable accesses are disallowed, unless they are to a variable at the top level. Non-local procedure accesses are just disallowed.

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

    Process the command-line arguments and return Some(filename) of the input file if processing should continue, None otherwise.

    Process the command-line arguments and return Some(filename) of the input file if processing should continue, None otherwise.

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  53. def colon: Doc

    Definition Classes
    PrettyPrinterBase
  54. def comma: Doc

    Definition Classes
    PrettyPrinterBase
  55. lazy val comment: PackratParser[Any]

    Definition Classes
    Parser
  56. def commit[T](p: ⇒ Parser[T]): Parser[T]

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

    Definition Classes
    CompilerBase
  58. lazy val condition: Parser[Condition with Serializable]

    Definition Classes
    Parser
  59. lazy val conditions: Parser[List[Condition with Serializable]]

    Definition Classes
    Parser
  60. implicit def constToTupleFunction2[A, B, R](r: (A, B) ⇒ R): (~[A, B]) ⇒ R

    Definition Classes
    ParserUtilities
  61. implicit def constToTupleFunction3[A, B, C, R](r: (A, B, C) ⇒ R): (~[~[A, B], C]) ⇒ R

    Definition Classes
    ParserUtilities
  62. implicit def constToTupleFunction4[A, B, C, D, R](r: (A, B, C, D) ⇒ R): (~[~[~[A, B], C], D]) ⇒ R

    Definition Classes
    ParserUtilities
  63. implicit def constToTupleFunction5[A, B, C, D, E, R](r: (A, B, C, D, E) ⇒ R): (~[~[~[~[A, B], C], D], E]) ⇒ R

    Definition Classes
    ParserUtilities
  64. implicit def constToTupleFunction6[A, B, C, D, E, F, R](r: (A, B, C, D, E, F) ⇒ R): (~[~[~[~[~[A, B], C], D], E], F]) ⇒ R

    Definition Classes
    ParserUtilities
  65. lazy val constdecl: Parser[ConstDecl]

    Definition Classes
    Parser
  66. lazy val constdeclsection: Parser[List[ConstDecl]]

    Definition Classes
    Parser
  67. lazy val constrainedInt: PackratParser[Int]

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

    Consume the AST by translating it to C.

    Consume the AST by translating it to C.

    Definition Classes
    TranslatingDriverDriver
  69. implicit def convertToEqualizer(left: Any): Equalizer

    Definition Classes
    Assertions
  70. lazy val declarations: PackratParser[List[Declaration]]

    Definition Classes
    Parser
  71. def declarationsDef: PackratParser[List[Declaration with Serializable]]

    Definition Classes
    ParserParserParser
  72. def declsToDoc(ds: List[Declaration]): Doc

    Definition Classes
    PrettyPrinter
  73. def declsection(d: Declaration): String

    Definition Classes
    PrettyPrinterPrettyPrinter
  74. lazy val decltype: (TypeDecl) ⇒ Type

    The built-in type associated with a type declaration.

    The built-in type associated with a type declaration.

    Definition Classes
    TypeAnalyser
  75. val defaultIndent: Int

    Definition Classes
    PrettyPrinterBase
  76. val defaultWidth: Int

    Definition Classes
    PrettyPrinterBase
  77. def defenv: Environment

    The default environment.

    The default environment.

    Definition Classes
    SymbolTable
  78. def defenvPairs: List[(String, Entity)]

    The default environment with pre-defined procedures added.

    The default environment with pre-defined procedures added.

    Definition Classes
    SymbolTableSymbolTable
  79. def define(env: Environment, i: String, e: Entity): Environment

    Define i to be e in the current scope of env, raising an error if the environment is empty.

    Define i to be e in the current scope of env, raising an error if the environment is empty.

    Definition Classes
    Environments
  80. lazy val deftype: (TypeDef) ⇒ Type

    The type given by a type definition.

    The type given by a type definition.

    Definition Classes
    TypeAnalyser
  81. def deftypeDef: (TypeDef) ⇒ Type

    Definition Classes
    TypeAnalyserTypeAnalyser
  82. lazy val desugarCase: Strategy

    Desugar CASE statements into equivalent blocks containing cascading IF statements.

    Desugar CASE statements into equivalent blocks containing cascading IF statements. A new variable called "casevar" is introduced in the block to hold the selection value so that it does not need to be re-evaluated. Specifically, CASE e OF cases END is transformed into VAR caseval : INTEGER; BEGIN caseval := e; IF caseval ... THEN ... END END

    Definition Classes
    Desugarer
  83. lazy val desugarFor: Strategy

    Desugar FOR statements into equivalent blocks containing a WHILE loop.

    Desugar FOR statements into equivalent blocks containing a WHILE loop. A new variable called "limit" is introduced in the block to hold the upper limit of the FOR to protect against changes in the body. Specifically, FOR id := e1 TO e2 BY e3 DO body END is transformed into VAR limit : INTEGER; BEGIN id := e1; limit := e2; WHILE (id op limit) DO body id := id + e3 END END If e3 is negative, op is <=, otherwise it is >=.

    Definition Classes
    Desugarer
  84. def dosanitisation: Boolean

    Flag to decide whether to sanitise the output before comparison of test results with expected results (see sanitise method).

    Flag to decide whether to sanitise the output before comparison of test results with expected results (see sanitise method). Default is true; override with false if you want actual results compared.

    Definition Classes
    TestCompiler
  85. def dot: Doc

    Definition Classes
    PrettyPrinterBase
  86. def dquote: Doc

    Definition Classes
    PrettyPrinterBase
  87. def dquotes(d: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  88. 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
  89. def elem(e: Elem): Parser[Elem]

    Definition Classes
    Parsers
  90. def elem(kind: String, p: (Elem) ⇒ Boolean): Parser[Elem]

    Definition Classes
    Parsers
  91. lazy val elsif: PackratParser[(Expression, Block)]

    Definition Classes
    Parser
  92. lazy val elsifs: Parser[List[(Expression, Block)]]

    Definition Classes
    Parser
  93. def empty: Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  94. def enclose(l: Doc, d: Doc, r: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  95. def enter(env: Environment): Environment

    Enter a new empty scope nested within the given environment.

    Enter a new empty scope nested within the given environment.

    Definition Classes
    Environments
  96. lazy val entity: (Identifier) ⇒ Entity

    The program entity referred to by an identifier definition or use.

    The program entity referred to by an identifier definition or use. In the case of a definition it's the thing being defined, so define it to be a reference to the declaration. If it's already defined, return a entity that indicates a multiple definition. In the case of a use, it's the thing defined elsewhere that is being referred to here, so look it up in the environment.

    Definition Classes
    NameAnalyser
  97. def entityFromDecl(n: IdnDef, i: String): Entity

    The entity for an identifier definition as given by its declaration context.

    The entity for an identifier definition as given by its declaration context.

    Definition Classes
    TypeAnalyserNameAnalyserNameAnalyser
  98. lazy val env: Chain[SourceASTNode, Environment]

    The environment containing bindings for all identifiers visible at the given node.

    The environment containing bindings for all identifiers visible at the given node. It starts at the module declaration with the default environment. At blocks we enter a nested scope which is removed on exit from the block. At constant and type declarations the left-hand side binding is not in scope on the right-hand side. Each identifier definition just adds its binding to the chain. The envout cases for assignment and expression mean that we don't need to traverse into those constructs, since declarations can't occur there.

    Definition Classes
    NameAnalyser
  99. def envin(in: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

    Definition Classes
    NameAnalyserNameAnalyser
  100. def envinl(in: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

    Blocks that are immediately inside procedure decls do not introduce new scopes since the procedure itself does.

    Blocks that are immediately inside procedure decls do not introduce new scopes since the procedure itself does. This computation overrides the one earlier that pushes a scope for all blocks. Don't include the procedure name in the scope of its own body.

    Definition Classes
    NameAnalyser
  101. def envout(out: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

    Definition Classes
    NameAnalyserNameAnalyser
  102. def envoutl(out: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

    Similarly for envin we don't need to leave a scope for a procedure block, since we didn't enter one.

    Similarly for envin we don't need to leave a scope for a procedure block, since we didn't enter one. The IdnDef that is for a ProcDecl needs to be in the outer scope, but not in the scope of its own body. All arguments and local declarations go in the nested scope.

    Definition Classes
    NameAnalyser
  103. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  104. def equal: Doc

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

    Definition Classes
    AnyRef → Any
  106. def err(msg: String): Parser[Nothing]

    Definition Classes
    ParserUtilities → Parsers
  107. final def execute(testName: String, configMap: Map[String, Any], color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Definition Classes
    Suite
  108. lazy val expconst: (Expression) ⇒ Boolean

    Is an expression expected to be constant or not? Either the expression is the root of an expected constant expression or its parent expression is expected to be constant.

    Is an expression expected to be constant or not? Either the expression is the root of an expected constant expression or its parent expression is expected to be constant.

    Definition Classes
    NameAnalyser
  109. def expect(expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  110. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  111. def expectedTestCount(filter: Filter): Int

    Definition Classes
    Suite → AbstractSuite
  112. lazy val expression: Parser[Expression]

    Definition Classes
    Parser
  113. lazy val exptype: (Expression) ⇒ Type

    The type expected of an expression as defined by its context.

    The type expected of an expression as defined by its context.

    Definition Classes
    TypeAnalyser
  114. def exptypeDef: (Expression) ⇒ Type

    Use of arrays and records is dealt with separately, not via the expected type.

    Use of arrays and records is dealt with separately, not via the expected type.

    Definition Classes
    TypeAnalyserTypeAnalyserTypeAnalyserTypeAnalyserTypeAnalyser
  115. lazy val factor: PackratParser[Expression]

    Definition Classes
    Parser
  116. def fail(cause: Throwable): Nothing

    Definition Classes
    Assertions
  117. def fail(message: String, cause: Throwable): Nothing

    Definition Classes
    Assertions
  118. def fail(message: String): Nothing

    Definition Classes
    Assertions
  119. def fail(): Nothing

    Definition Classes
    Assertions
  120. def failure(msg: String): Parser[Nothing]

    Definition Classes
    ParserUtilities → Parsers
  121. lazy val falseConstant: IntegerValue

    Built-in false constant.

    Built-in false constant.

    Definition Classes
    SymbolTable
  122. def fieldListsToFields(fls: List[FieldList]): List[Field]

    Definition Classes
    TypeAnalyser
  123. lazy val fieldlist: Parser[Option[FieldList]]

    Definition Classes
    Parser
  124. lazy val fieldlists: Parser[List[FieldList]]

    Definition Classes
    Parser
  125. def filetests(name: String, path: String, srcext: String, resext: String, optinext: Option[String] = None, indefault: String = "", argslist: List[Array[String]] = List (Array ())): Unit

    Make tests that process the files in path.

    Make tests that process the files in path. name is an identifying name for this set of tests. All files whose names end in srcext are processed. Processing is done by the function compile which must return either Some (s) where s is the output or None if processing failed. If srcext is .x and resext is .y, then the expected result for foo.x is found in file foo.y. If optinext is Some (z), then foo.z is used for standard input, if it exists, otherwise the string indefault is used. A test fails if either the processing fails or it succeeds with the wrong result. argslist is used to specify the sets of command-line arguments that you want to use. Each test is run with each set of arguments. The default is an empty argument list.

    Definition Classes
    TestCompiler
  126. def fillcat(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  127. def fillsep(ds: Seq[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  128. def fillsep(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  129. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  130. lazy val fldidn: Parser[FieldIdn]

    Definition Classes
    Parser
  131. lazy val forStatement: Parser[ForStatement]

    Definition Classes
    Parser
  132. def forToDoc(s: ForStatement): Doc

    Definition Classes
    PrettyPrinter
  133. lazy val forVar: Parser[IdnExp]

    Definition Classes
    Parser
  134. def forwslash: Doc

    Definition Classes
    PrettyPrinterBase
  135. lazy val fpsection: Parser[FPSection]

    Definition Classes
    Parser
  136. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  137. def group(d: Doc): Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  138. def guard[T](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    Parsers
  139. def handleWhiteSpace(source: CharSequence, offset: Int): Int

    Attributes
    protected
    Definition Classes
    RegexParsers
  140. def hasField(t: Type, f: String): Boolean

    Is a given type a record type containing a field called f?

    Is a given type a record type containing a field called f?

    Definition Classes
    SymbolTable
  141. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  142. def hcat(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  143. val help: FlagOption[Boolean]

    Definition Classes
    Driver
  144. def hsep(ds: Seq[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  145. def hsep(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  146. lazy val ident: Parser[String]

    Definition Classes
    Parser
  147. def idlistToDoc(ids: List[IdnDef]): Doc

    Definition Classes
    PrettyPrinter
  148. lazy val idndef: Parser[IdnDef]

    Definition Classes
    Parser
  149. lazy val idndeflist: Parser[List[IdnDef]]

    Definition Classes
    Parser
  150. lazy val idnlist: Parser[List[String]]

    Definition Classes
    Parser
  151. lazy val idntype: (IdnUse) ⇒ Type

    The type of the entity denoted by an identifier use.

    The type of the entity denoted by an identifier use.

    Definition Classes
    TypeAnalyser
  152. def idntypeDef: (IdnUse) ⇒ Type

    The type of a parameter is the type of its underlying variable.

    The type of a parameter is the type of its underlying variable.

    Definition Classes
    TypeAnalyserTypeAnalyser
  153. lazy val idnuse: Parser[IdnUse]

    Definition Classes
    Parser
  154. lazy val ifStatement: Parser[IfStatement]

    Definition Classes
    Parser
  155. def ifToDoc(s: IfStatement): Doc

    Definition Classes
    PrettyPrinter
  156. def ignore(testName: String, testTags: Tag*)(testFun: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    FunSuite
  157. implicit def info: Informer

    Attributes
    protected
    Definition Classes
    FunSuite
  158. 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
  159. val input: SingleValueParameter[String]

    Definition Classes
    Driver
  160. lazy val integerType: BuiltinType

    Built-in integer type.

    Built-in integer type.

    Definition Classes
    SymbolTable
  161. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Definition Classes
    Assertions
  162. lazy val intexp: Parser[IntExp]

    Definition Classes
    Parser
  163. def isArray(e: Entity): Boolean

    Return true if the entity is erroneous or is an array.

    Return true if the entity is erroneous or is an array.

    Definition Classes
    SymbolTable
  164. def isBoolean(e: Type): Boolean

    Return true if the given type is Boolean or an unknown type.

    Return true if the given type is Boolean or an unknown type.

    Definition Classes
    SymbolTable
  165. def isCompatible(tipe: Type, exptype: Type): Boolean

    Array and record types are only compatible if they have the same name.

    Array and record types are only compatible if they have the same name.

    Definition Classes
    TypeAnalyserTypeAnalyser
  166. def isConstant(e: Entity): Boolean

    Return true if the entity is erroneous or is a constant.

    Return true if the entity is erroneous or is a constant.

    Definition Classes
    SymbolTable
  167. def isDefinedInEnv(env: Environment, i: String): Boolean

    Say whether i is defined in any scope of env.

    Say whether i is defined in any scope of env.

    Definition Classes
    Environments
  168. def isDefinedInInner(env: Environment, i: String): Boolean

    Say whether i is defined in an innermost scope of env (i.

    Say whether i is defined in an innermost scope of env (i.e., in the current scope).

    Definition Classes
    Environments
  169. def isDefinedInOuter(env: Environment, i: String): Boolean

    Say whether i is defined in an outer scope of env (i.

    Say whether i is defined in an outer scope of env (i.e., not in the current scope).

    Definition Classes
    Environments
  170. def isDefinedInScope(scope: Scope, i: String): Boolean

    Say whether i is defined in the given scope.

    Say whether i is defined in the given scope.

    Definition Classes
    Environments
  171. def isDefinedInScope(env: Environment, i: String): Boolean

    Say whether i is defined in the current scope of env.

    Say whether i is defined in the current scope of env.

    Definition Classes
    Environments
  172. def isError(e: Entity): Boolean

    Return true if the entity is an error, false otherwise.

    Return true if the entity is an error, false otherwise.

    Definition Classes
    SymbolTable
  173. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  174. def isInteger(e: Type): Boolean

    Return true if the given type is integer or an unknown type.

    Return true if the given type is integer or an unknown type.

    Definition Classes
    SymbolTable
  175. def isLvalue(l: Expression): Boolean

    Return true if the expression can legally appear on the left-hand side of an assignment statement.

    Return true if the expression can legally appear on the left-hand side of an assignment statement. At this level only allow identifiers of variables or things we don't know anything about. The true default is used so that this computation can be used in redefinitions.

    Definition Classes
    NameAnalyserNameAnalyser
  176. def isModule(e: Entity): Boolean

    Return true if the entity is erroneous or is a module.

    Return true if the entity is erroneous or is a module.

    Definition Classes
    SymbolTable
  177. def isNotArray(e: Entity): Boolean

    Return true if the entity is erroneous or is not an array.

    Return true if the entity is erroneous or is not an array.

    Definition Classes
    SymbolTable
  178. def isNotRecord(e: Entity): Boolean

    Return true if the entity is erroneous or is not a record.

    Return true if the entity is erroneous or is not a record.

    Definition Classes
    SymbolTable
  179. def isRecord(e: Entity): Boolean

    Return true if the entity is erroneous or is a record.

    Return true if the entity is erroneous or is a record.

    Definition Classes
    SymbolTable
  180. def isRvalue(r: IdnExp): Boolean

    Return true if the identifier is an r-value and hence its value can be used (ie.

    Return true if the identifier is an r-value and hence its value can be used (ie. it's erroneous or is a constant, value or variable).

    Definition Classes
    NameAnalyser
  181. def isType(e: Entity): Boolean

    Return true if the entity is erroneous or is a type.

    Return true if the entity is erroneous or is a type.

    Definition Classes
    SymbolTable
  182. def isVariable(e: Entity): Boolean

    Parameters are variables too.

    Parameters are variables too.

    Definition Classes
    SymbolTableSymbolTable
  183. lazy val isconst: (Expression) ⇒ Boolean

    Is an expression constant or not? Unknown entities are constant.

    Is an expression constant or not? Unknown entities are constant. Strictly speaking we only need to support integer expressions here, but we treat Boolean ones as constant in the same way so that we avoid spurious errors. Type analysis will reject Boolean constant expressions anyway.

    Definition Classes
    NameAnalyser
  184. lazy val kase: Parser[Case]

    Definition Classes
    Parser
  185. lazy val keyword: Parser[String]

    Definition Classes
    Parser
  186. def keywords: List[String]

    Definition Classes
    ParserParserParserParserParserParser
  187. def langle: Doc

    Definition Classes
    PrettyPrinterBase
  188. def langlevel: Int

    Definition Classes
    A4Phases
  189. var lastNoSuccess: NoSuccess

    Definition Classes
    Parsers
  190. def lbrace: Doc

    Definition Classes
    PrettyPrinterBase
  191. def lbracket: Doc

    Definition Classes
    PrettyPrinterBase
  192. def leave(env: Environment): Environment

    Leave the outermost scope of the given environment, raising an error if the environment is empty.

    Leave the outermost scope of the given environment, raising an error if the environment is empty.

    Definition Classes
    Environments
  193. lazy val level: (SourceASTNode) ⇒ Int

    Level of a node considering the module level to be zero and incrementing each time we enter a nested procedure declaration.

    Level of a node considering the module level to be zero and incrementing each time we enter a nested procedure declaration.

    Definition Classes
    NameAnalyser
  194. lazy val lhs: Parser[Expression]

    Definition Classes
    Parser
  195. def lhsDef: PackratParser[Expression]

    Definition Classes
    ParserParser
  196. lazy val lhsNoPos: PackratParser[Expression]

    Definition Classes
    Parser
  197. def line: Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  198. def linebreak: Doc

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

    Definition Classes
    PrettyPrinterBase
  200. implicit def literal(s: String): Parser[String]

    Definition Classes
    WhitespaceParser → RegexParsers
  201. def log[T](p: ⇒ Parser[T])(name: String): Parser[T]

    Definition Classes
    Parsers
  202. def lookup(env: Environment, i: String, e: Entity, scope: Boolean = false): Entity

    Look up i in env, returning the mapped Entity if there is one, otherwise return e.

    Look up i in env, returning the mapped Entity if there is one, otherwise return e. If scope is true, just search the innermost scope, otherwise search outwards in all scopes, returning the first Entity found, if any.

    Definition Classes
    Environments
  203. def lparen: Doc

    Definition Classes
    PrettyPrinterBase
  204. def lsep(ds: Seq[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  205. def lsep2(ds: Seq[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  206. def lterm(ds: Seq[Doc], term: Doc): Doc

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

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

    Definition Classes
    RegexCompiler → CompilerBase
  209. def mangle(s: String): String

    Mangle an Oberon name so it is safe to be used at the C level.

    Mangle an Oberon name so it is safe to be used at the C level. We assume that there are no C names with "ob_" prefix.

    Definition Classes
    CCodeGenerator
  210. val maxlanglevel: Int

    The maximum language level we support.

    The maximum language level we support.

    Definition Classes
    TestDriver
  211. def memo[T](p: Parser[T]): PackratParser[T]

    Definition Classes
    PackratParsers
  212. def mkList[T]: (~[T, List[T]]) ⇒ List[T]

    Definition Classes
    Parsers
  213. def mktests(proglang: String): Unit

    Make the tests for a given language subset.

    Make the tests for a given language subset. proglang denotes the language subset whose tests are used.

    Definition Classes
    TestDriver
  214. lazy val moduledecl: Parser[ModuleDecl]

    Definition Classes
    Parser
  215. lazy val namedtypedef: Parser[NamedType]

    Definition Classes
    Parser
  216. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  217. def nest(d: Doc, j: Indent): Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  218. def nestedSuites: List[Suite]

    Definition Classes
    Suite → AbstractSuite
  219. def noparens(inner: PrettyOperatorExpression, outer: PrettyOperatorExpression, side: Side): Boolean

    Definition Classes
    ParenPrettyPrinter
  220. def not[T](p: ⇒ Parser[T]): Parser[Unit]

    Definition Classes
    Parsers
  221. final def notify(): Unit

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

    Definition Classes
    AnyRef
  223. lazy val nsimpexp: PackratParser[Expression]

    Definition Classes
    Parser
  224. lazy val nterm: PackratParser[Expression]

    Definition Classes
    Parser
  225. lazy val ntypedefDef: Parser[TypeDef]

    Definition Classes
    Parser
  226. lazy val numparams: (IdnUse) ⇒ Option[Int]

    Calculate the number of parameters to a procedure.

    Calculate the number of parameters to a procedure. Return None if the identifier use does not denote a procedure.

    Definition Classes
    TypeAnalyser
  227. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]

    Definition Classes
    Parsers
  228. lazy val optActualParameters: Parser[List[Expression]]

    Definition Classes
    Parser
  229. def optSectionToDoc(section: String, optds: Option[List[Declaration]]): Doc

    Definition Classes
    PrettyPrinter
  230. lazy val optelse: Parser[Option[Block]]

    Definition Classes
    Parser
  231. lazy val optformalParameters: PackratParser[List[FPSection]]

    Definition Classes
    Parser
  232. lazy val optvar: Parser[Product with Serializable with Mode]

    Definition Classes
    Parser
  233. lazy val parameters: (Identifier) ⇒ Option[List[ParamInfo]]

    Calculate the parameter information list for a procedure.

    Calculate the parameter information list for a procedure. If it's a built-in we have the information already, otherwise we need to work it out from the declaration. Returns None if the entity is not a procedure.

    Definition Classes
    TypeAnalyser
  234. def parammode(u: IdnUse, i: Int): Mode

    Return the ith parameter mode of the procedure denoted by u (counting from one).

    Return the ith parameter mode of the procedure denoted by u (counting from one). If u is not a procedure or has less than i parameters, return a value mode, since that mode places no constraints on its actual parameter.

    Definition Classes
    TypeAnalyser
  235. def paramsToDoc(ds: List[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinter
  236. def paramtype(u: IdnUse, i: Int): Type

    Return the ith parameter type of the procedure denoted by u (counting from one).

    Return the ith parameter type of the procedure denoted by u (counting from one). If u is not a procedure or has less than i parameters, return an unknown type.

    Definition Classes
    TypeAnalyser
  237. def parens(d: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  238. def parse[T](p: Parser[T], in: Reader): ParseResult[T]

    Definition Classes
    RegexParsers
  239. def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]

    Definition Classes
    RegexParsers
  240. def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]

    Definition Classes
    RegexParsers
  241. def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]

    Definition Classes
    RegexParsers
  242. def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]

    Definition Classes
    RegexParsers
  243. def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]

    Definition Classes
    RegexParsers
  244. implicit def parseResultToTuple2[A, B](p: Parser[~[A, B]]): PackratParser[(A, B)]

    Definition Classes
    ParserUtilities
  245. implicit def parseResultToTuple3[A, B, C](p: Parser[~[~[A, B], C]]): PackratParser[(A, B, C)]

    Definition Classes
    ParserUtilities
  246. implicit def parseResultToTuple4[A, B, C, D](p: Parser[~[~[~[A, B], C], D]]): PackratParser[(A, B, C, D)]

    Definition Classes
    ParserUtilities
  247. implicit def parseResultToTuple5[A, B, C, D, E](p: Parser[~[~[~[~[A, B], C], D], E]]): PackratParser[(A, B, C, D, E)]

    Definition Classes
    ParserUtilities
  248. implicit def parseResultToTuple6[A, B, C, D, E, F](p: Parser[~[~[~[~[~[A, B], C], D], E], F]]): PackratParser[(A, B, C, D, E, F)]

    Definition Classes
    ParserUtilities
  249. def parseWhitespace(in: Input): ParseResult[Any]

    Attributes
    protected
    Definition Classes
    WhitespaceParser
  250. lazy val parser: PackratParser[ModuleDecl]

    Definition Classes
    Parser
  251. implicit def parser2packrat[T](p: ⇒ Parser[T]): PackratParser[T]

    Definition Classes
    PackratParsers
  252. var parsingWhitespace: Boolean

    Attributes
    protected
    Definition Classes
    WhitespaceParser
  253. def pending: PendingNothing

    Definition Classes
    Suite
  254. def pendingUntilFixed(f: ⇒ Unit): Unit

    Definition Classes
    Suite
  255. def phrase[T](p: Parser[T]): PackratParser[T]

    Definition Classes
    PackratParsers → Parsers
  256. def plist(l: List[PrettyPrintable], prefix: String, elemToDoc: (PrettyPrintable) ⇒ Doc, sep: Doc, sepfn: (Seq[Doc], Doc) ⇒ Doc): Doc

    Definition Classes
    PrettyPrinterBase
  257. def positioned[T <: Positional](p: ⇒ Parser[T]): Parser[T]

    Definition Classes
    WhitespaceParser → RegexParsers → Parsers
  258. val pprintast: FlagOption[Boolean]

    Definition Classes
    Driver
  259. val pprintcast: FlagOption[Boolean]

    Definition Classes
    TranslatingDriver
  260. val pprintiast: FlagOption[Boolean]

    Definition Classes
    TransformingDriver
  261. def pretty(d: Doc, w: Width): Layout

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  262. def pretty(p: PrettyPrintable): Layout

    Definition Classes
    PrettyPrinterBase
  263. val printast: FlagOption[Boolean]

    Definition Classes
    Driver
  264. val printcast: FlagOption[Boolean]

    Definition Classes
    TranslatingDriver
  265. val printiast: FlagOption[Boolean]

    Definition Classes
    TransformingDriver
  266. lazy val procedureCall: Parser[Call]

    Definition Classes
    Parser
  267. lazy val procedureDeclaration: Parser[ProcDecl]

    Definition Classes
    Parser
  268. 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
  269. 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
  270. def product(p: Any): Doc

    Definition Classes
    PrettyPrinterBase
  271. def rangle: Doc

    Definition Classes
    PrettyPrinterBase
  272. def rbrace: Doc

    Definition Classes
    PrettyPrinterBase
  273. def rbracket: Doc

    Definition Classes
    PrettyPrinterBase
  274. lazy val readProc: BuiltinProc

    The built-in Read procedure.

    The built-in Read procedure.

    Definition Classes
    SymbolTable
  275. implicit def regex(r: Regex): Parser[String]

    Definition Classes
    WhitespaceParser → RegexParsers
  276. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  277. def rep1[T](first: ⇒ Parser[T], p0: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  278. def rep1[T](p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  279. def rep1sep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Definition Classes
    Parsers
  280. def repN[T](num: Int, p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  281. def repsep[T](p: ⇒ Parser[T], q: ⇒ Parser[Any]): Parser[List[T]]

    Definition Classes
    Parsers
  282. def resetEnvironments: Unit

    Reset the environment module.

    Reset the environment module.

    Definition Classes
    Environments
  283. def result[T](v: ⇒ T): Parser[T]

    Definition Classes
    ParserUtilities
  284. lazy val rootconstexp: (Expression) ⇒ Boolean

    Is this expression the root of what is expected to be a constant expression? At this level only expressions on the RHS of a constant declaration have this property.

    Is this expression the root of what is expected to be a constant expression? At this level only expressions on the RHS of a constant declaration have this property.

    Definition Classes
    NameAnalyser
  285. def rootconstexpDef: (Expression) ⇒ Boolean

    Definition Classes
    TypeAnalyserNameAnalyserNameAnalyser
  286. def rootenv(bindings: (String, Entity)*): Environment

    Create a root environment, i.

    Create a root environment, i.e., one that has a single scope containing the given bindings.

    Definition Classes
    Environments
  287. def rparen: Doc

    Definition Classes
    PrettyPrinterBase
  288. def run(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Definition Classes
    FunSuite → Suite → AbstractSuite
  289. def runNestedSuites(reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  290. def runTest(testName: String, reporter: Reporter, stopper: Stopper, configMap: Map[String, Any], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    FunSuite → Suite → AbstractSuite
  291. def runTests(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    FunSuite → Suite → AbstractSuite
  292. def sanitise(s: String): String

    Sanitise the output from a test.

    Sanitise the output from a test. Remove any output that doesn't make sense to this program. I.e., if we are running a program that performs tasks 1-m, then any lines marked with [p], where p > m should be removed before comparison. Also, there can be three numbers, a'la [p,q,r] where p is as before and q (r) are lower (upper) inclusive bounds on the language level to which this output should apply. If p is omitted, the output applies to all task levels. If p is given, but q and r are omitted, the output also applies to all language levels.

    Definition Classes
    TestDriverTestCompiler
  293. 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
  294. def semi: Doc

    Definition Classes
    PrettyPrinterBase
  295. def semisep(l: List[SourceASTNode], sep: Doc = semi): Doc

    Pretty-print a nested list of nodes separated by sep (default: semi colon) and line breaks.

    Pretty-print a nested list of nodes separated by sep (default: semi colon) and line breaks.

    Definition Classes
    PrettyPrinter
  296. def sep(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  297. lazy val simpexp: Parser[Expression]

    Definition Classes
    Parser
  298. def skipWhitespace: Boolean

    Definition Classes
    WhitespaceParser → RegexParsers
  299. def softbreak: Doc

    Definition Classes
    PrettyPrinterBase
  300. def softline: Doc

    Definition Classes
    PrettyPrinterBase
  301. def space: Doc

    Definition Classes
    PrettyPrinterBase
  302. def spaces(n: Int): Doc

    Definition Classes
    PrettyPrinterBase
  303. def squote: Doc

    Definition Classes
    PrettyPrinterBase
  304. def squotes(d: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  305. def ssep(ds: Seq[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  306. lazy val statement: PackratParser[Statement]

    Definition Classes
    Parser
  307. def statementDef: PackratParser[Statement]

    Definition Classes
    ParserParserParserParserParser
  308. lazy val statementSequence: Parser[Block]

    Definition Classes
    Parser
  309. lazy val statements: Parser[Block]

    Definition Classes
    Parser
  310. lazy val step: Parser[Option[Expression]]

    Definition Classes
    Parser
  311. def sterm(ds: Seq[Doc], term: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  312. def string(s: String): Doc

    Definition Classes
    PrettyPrinterBase
  313. def stringToInt(s: String): Either[Int, String]

    Definition Classes
    ParserUtilities
  314. def success[T](v: T): Parser[T]

    Definition Classes
    Parsers
  315. def suiteName: String

    Definition Classes
    Suite
  316. def surround(d: Doc, b: Doc): Doc

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

    Definition Classes
    AnyRef
  318. def tags: Map[String, Set[String]]

    Definition Classes
    FunSuite → Suite → AbstractSuite
  319. def tasklevel: Int

    Definition Classes
    A4Phases
  320. lazy val term: Parser[Expression]

    Definition Classes
    Parser
  321. def test(testName: String, testTags: Tag*)(testFun: ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    FunSuite
  322. def testNames: Set[String]

    Definition Classes
    FunSuite → Suite → AbstractSuite
  323. def testsFor(unit: Unit): Unit

    Attributes
    protected
    Definition Classes
    FunSuite
  324. implicit def text(t: String): Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  325. lazy val tipe: (Expression) ⇒ Type

    The type of an expression.

    The type of an expression.

    Definition Classes
    TypeAnalyser
  326. def tipeDef: (Expression) ⇒ Type

    Definition Classes
    TypeAnalyserTypeAnalyser
  327. def toDoc(n: CASTNode): Doc

  328. def toDoc(n: SourceASTNode): Doc

  329. def toParenDoc(e: PrettyExpression): Doc

    CNegExp (CNegExp) special case is to avoid output of --e which is interpreted as a pre-decrement operator.

    CNegExp (CNegExp) special case is to avoid output of --e which is interpreted as a pre-decrement operator.

    Definition Classes
    PrettyPrinterPrettyPrinterPrettyPrinterPrettyPrinter → ParenPrettyPrinter
  330. def toString(): String

    Definition Classes
    AnyRef → Any
  331. def transform(m: ModuleDecl): ModuleDecl

    Desugar FOR and CASE statements into simpler constructs.

    Desugar FOR and CASE statements into simpler constructs. Then call the next level of transformation.

    Definition Classes
    DesugarerDesugarerTransformer
  332. def translate(e: Expression): CExpression

    Uses of array parameter names don't need to be dereferenced.

    Uses of array parameter names don't need to be dereferenced.

    Definition Classes
    CCodeGeneratorCCodeGeneratorCCodeGenerator
  333. def translate(t: Type): CType

    Add translation for array and record types.

    Add translation for array and record types.

    Definition Classes
    CCodeGeneratorCCodeGenerator
  334. def translate(s: Statement): CStatement

    Add translation of call statements.

    Add translation of call statements.

    Definition Classes
    CCodeGeneratorCCodeGeneratorCCodeGeneratorCCodeGeneratorTranslator
  335. def translate(d: Declaration): List[CDeclaration]

    Add translation of procedure declarations.

    Add translation of procedure declarations.

    Definition Classes
    CCodeGeneratorCCodeGeneratorCCodeGeneratorTranslator
  336. def translate(m: ModuleDecl): CProgram

    Add STDIO header since output is now possible.

    Add STDIO header since output is now possible.

    Definition Classes
    CCodeGeneratorCCodeGeneratorTranslator
  337. def translate(eis: List[(Expression, Block)], oe: Option[Block]): CStatement

    Translation of expression, block pairs from an IF statement into cascading C IFs.

    Translation of expression, block pairs from an IF statement into cascading C IFs.

    Definition Classes
    CCodeGenerator
  338. def translateActualParam(p: Expression, mode: Mode): CExpression

    Array parameters get passed by reference, so we don't need to insert addressing operations for VAR.

    Array parameters get passed by reference, so we don't need to insert addressing operations for VAR.

    Definition Classes
    CCodeGeneratorCCodeGenerator
  339. def translateActualParams(u: IdnUse, ps: List[Expression]): List[CExpression]

    Translate the actual parameters of a procedure call.

    Translate the actual parameters of a procedure call. Assumes that the right number of parameters are present.

    Definition Classes
    CCodeGenerator
  340. def translateFormalParam(m: Mode, i: String, t: Type): CDeclaration

    Array formal parameters are not made into address types.

    Array formal parameters are not made into address types.

    Definition Classes
    CCodeGeneratorCCodeGenerator
  341. def translateFormalParams(p: IdnDef): List[CDeclaration]

    Translate the formal parameters of a particular defined procedure.

    Translate the formal parameters of a particular defined procedure.

    Definition Classes
    CCodeGenerator
  342. lazy val trueConstant: IntegerValue

    Built-in true constant.

    Built-in true constant.

    Definition Classes
    SymbolTable
  343. lazy val typebasetype: (Type) ⇒ Type

    The actual type that a user type denotes.

    The actual type that a user type denotes.

    Definition Classes
    TypeAnalyser
  344. lazy val typedecl: Parser[TypeDecl]

    Definition Classes
    Parser
  345. lazy val typedeclsection: Parser[List[TypeDecl]]

    Definition Classes
    Parser
  346. lazy val typedef: PackratParser[TypeDef]

    Definition Classes
    Parser
  347. def typedefDef: PackratParser[TypeDef]

    Definition Classes
    ParserParser
  348. def uniquifyNames(m: ModuleDecl): ModuleDecl

    Rename user-defined names to avoid clashes with outer declarations of the same name.

    Rename user-defined names to avoid clashes with outer declarations of the same name. This transformation is not idempotent.

    Definition Classes
    Desugarer
  349. lazy val unknownType: BuiltinType

    A type that is unknown, eg because the typed thing is erroneously defined.

    A type that is unknown, eg because the typed thing is erroneously defined.

    Definition Classes
    SymbolTable
  350. def value(v: Any): Doc

    Definition Classes
    PrettyPrinterBase
  351. lazy val value: (Expression) ⇒ Int

    What is the value of an integer expression? Only needs to be valid if the expression is an integer constant (see isconst above) and is defined (eg, no divide by zero.

    What is the value of an integer expression? Only needs to be valid if the expression is an integer constant (see isconst above) and is defined (eg, no divide by zero.) Returns zero in all other cases. FIXME: Ignores issues of overflow.

    Definition Classes
    NameAnalyser
  352. lazy val vardecl: Parser[VarDecl]

    Definition Classes
    Parser
  353. lazy val vardeclsection: Parser[List[VarDecl]]

    Definition Classes
    Parser
  354. def vcat(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  355. def vsep(ds: Seq[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinterBase
  356. def vsep(ds: Seq[Doc]): Doc

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  360. lazy val whileStatement: Parser[WhileStatement]

    Definition Classes
    Parser
  361. val whiteSpace: Regex

    Attributes
    protected
    Definition Classes
    RegexParsers
  362. lazy val whitespaceParser: PackratParser[Any]

    Definition Classes
    Parser → WhitespaceParser
  363. def withClue(clue: Any)(fun: ⇒ Unit): Unit

    Definition Classes
    Assertions
  364. def withFixture(test: NoArgTest): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  365. def wrap[T, U](p: ⇒ Parser[T], f: (T) ⇒ Either[U, String]): Parser[U]

    Definition Classes
    ParserUtilities
  366. lazy val writeProc: BuiltinProc

    The built-in Write procedure.

    The built-in Write procedure.

    Definition Classes
    SymbolTable
  367. lazy val writelnProc: BuiltinProc

    The built-in WriteLn procedure.

    The built-in WriteLn procedure.

    Definition Classes
    SymbolTable

Inherited from TranslatingTestDriver

Inherited from TestDriver

Inherited from TestCompiler[ModuleDecl]

Inherited from FunSuite

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from A4Phases

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from CPrettyPrinter

Inherited from CCodeGenerator

Inherited from CCodeGenerator

Inherited from CCodeGenerator

Inherited from CCodeGenerator

Inherited from CCodeGenerator

Inherited from Translator

Inherited from Desugarer

Inherited from Desugarer

Inherited from Lifter

Inherited from Transformer

Inherited from TypeAnalyser

Inherited from SymbolTable

Inherited from TypeAnalyser

Inherited from TypeAnalyser

Inherited from TypeAnalyser

Inherited from TypeAnalyser

Inherited from NameAnalyser

Inherited from NameAnalyser

Inherited from SymbolTable

Inherited from NameAnalyser

Inherited from NameAnalyser

Inherited from SymbolTable

Inherited from SymbolTable

Inherited from Environments

Inherited from Analyser

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from PrettyPrinter

Inherited from SourcePrettyPrinter

Inherited from ParenPrettyPrinter

Inherited from Parser

Inherited from Parser

Inherited from Parser

Inherited from Parser

Inherited from Parser

Inherited from Parser

Inherited from WhitespaceParser

Inherited from ParserUtilities

Inherited from PackratParsers

Inherited from RegexParsers

Inherited from Parsers

Inherited from TranslatingDriver

Inherited from TransformingDriver

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