org.kiama.example.oberon0.drivers

A4

object A4 extends A4Phases

Source
A4.scala
Linear Supertypes
A4Phases, PrettyPrinter, PrettyPrinter, PrettyPrinter, PrettyPrinter, PrettyPrinter, CPrettyPrinter, CCodeGenerator, CCodeGenerator, CCodeGenerator, CCodeGenerator, CCodeGenerator, Translator, Desugarer, Desugarer, Lifter, Transformer, TypeAnalyser, SymbolTable, TypeAnalyser, TypeAnalyser, TypeAnalyser, TypeAnalyser, NameAnalyser, NameAnalyser, SymbolTable, NameAnalyser, NameAnalyser, SymbolTable, SymbolTable, Environments, Analyser, PrettyPrinter, PrettyPrinter, PrettyPrinter, PrettyPrinter, PrettyPrinter, PrettyPrinter, SourcePrettyPrinter, ParenPrettyPrinter, L4.Parser, L3.Parser, L2.Parser, L1.Parser, L0.Parser, base.Parser, WhitespacePositionedParserUtilities, PositionedParserUtilities, WhitespaceParser, ParserUtilities, PackratParsers, TranslatingDriver, TransformingDriver, Driver, ProfilingCompiler[ModuleDecl], Profiler, Profiler, Values, CompilerDriver, PrettyPrinter, PrettyPrinterBase, Compiler[ModuleDecl], RegexCompiler[ModuleDecl], RegexParsers, Parsers, CompilerBase[ModuleDecl], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. A4
  2. A4Phases
  3. PrettyPrinter
  4. PrettyPrinter
  5. PrettyPrinter
  6. PrettyPrinter
  7. PrettyPrinter
  8. CPrettyPrinter
  9. CCodeGenerator
  10. CCodeGenerator
  11. CCodeGenerator
  12. CCodeGenerator
  13. CCodeGenerator
  14. Translator
  15. Desugarer
  16. Desugarer
  17. Lifter
  18. Transformer
  19. TypeAnalyser
  20. SymbolTable
  21. TypeAnalyser
  22. TypeAnalyser
  23. TypeAnalyser
  24. TypeAnalyser
  25. NameAnalyser
  26. NameAnalyser
  27. SymbolTable
  28. NameAnalyser
  29. NameAnalyser
  30. SymbolTable
  31. SymbolTable
  32. Environments
  33. Analyser
  34. PrettyPrinter
  35. PrettyPrinter
  36. PrettyPrinter
  37. PrettyPrinter
  38. PrettyPrinter
  39. PrettyPrinter
  40. SourcePrettyPrinter
  41. ParenPrettyPrinter
  42. Parser
  43. Parser
  44. Parser
  45. Parser
  46. Parser
  47. Parser
  48. WhitespacePositionedParserUtilities
  49. PositionedParserUtilities
  50. WhitespaceParser
  51. ParserUtilities
  52. PackratParsers
  53. TranslatingDriver
  54. TransformingDriver
  55. Driver
  56. ProfilingCompiler
  57. Profiler
  58. Profiler
  59. Values
  60. CompilerDriver
  61. PrettyPrinter
  62. PrettyPrinterBase
  63. Compiler
  64. RegexCompiler
  65. RegexParsers
  66. Parsers
  67. CompilerBase
  68. AnyRef
  69. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class ArrayType(size: Int, elemtype: SymbolTable.Type) extends Type with Product with Serializable

    An array type with the given size and element type.

  2. trait Builtin extends Named

    Marker trait for all built-in entities.

  3. 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.

  4. 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.

  5. case class Child extends Step with Product with Serializable

    Definition Classes
    Profiler
  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. case class Dep extends Product with Serializable

    Definition Classes
    Profiler
  8. 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
  9. trait DocOps extends AnyRef

    Definition Classes
    PrettyPrinterBase
  10. type Elem = Char

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

    Definition Classes
    Environments
  12. type Environment = Stack[Scope]

    Definition Classes
    Environments
  13. case class Error extends NoSuccess with Product with Serializable

    Definition Classes
    Parsers
  14. trait ErrorEntity extends Entity

    Definition Classes
    Environments
  15. case class Failure extends NoSuccess with Product with Serializable

    Definition Classes
    Parsers
  16. case class Field(ident: String, tipe: SymbolTable.Type) extends Entity with Product with Serializable

    A record field.

  17. type Indent = Int

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

    Definition Classes
    Parsers
  19. 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.

  20. type Layout = String

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

    A user-defined module represented by a module declaration.

  22. case class MultipleEntity extends Entity with ErrorEntity with Product with Serializable

    Definition Classes
    Environments
  23. trait Named extends AnyRef

    Definition Classes
    Environments
  24. trait NamedEntity extends Entity with Named

    Definition Classes
    Environments
  25. sealed abstract class NoSuccess extends ParseResult[Nothing]

    Definition Classes
    Parsers
  26. trait OnceParser[+T] extends Parser[T]

    Definition Classes
    Parsers
  27. abstract class PackratParser[+T] extends scala.util.parsing.combinator.PackratParsers.Parser[T]

    Definition Classes
    PackratParsers
  28. class PackratReader[+T] extends Reader[T]

    Definition Classes
    PackratParsers
  29. case class ParamInfo(mode: Mode, ident: String, tipe: SymbolTable.Type) extends Product with Serializable

    Information about a particular parameter.

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

    A parameter is a variable augmented with a passing mode.

  31. sealed abstract class ParseResult[+T] extends AnyRef

    Definition Classes
    Parsers
  32. abstract class Parser[+T] extends (Input) ⇒ ParseResult[T]

    Definition Classes
    Parsers
  33. trait PrettyPrintable extends AnyRef

    Definition Classes
    PrettyPrinterBase
  34. case class Procedure(ident: String, decl: ProcDecl) extends Entity with NamedEntity with Product with Serializable

    A procedure entity represented by a procedure declaration.

  35. case class Record extends Product with Serializable

    Definition Classes
    Values
  36. case class RecordType(fields: List[Field]) extends Type with Product with Serializable

    A record with the given fields.

  37. type Scope = Map[String, Entity]

    Definition Classes
    Environments
  38. abstract class Step extends AnyRef

    Definition Classes
    Profiler
  39. case class Success[+T] extends ParseResult[T] with Product with Serializable

    Definition Classes
    Parsers
  40. abstract class Type extends Entity

    An entity representing by a user-provided type declaration.

  41. case class UnknownEntity extends Entity with ErrorEntity with Product with Serializable

    Definition Classes
    Environments
  42. case class UserType(ident: String, tipe: TypeDecl) extends Type with Named with Product with Serializable

    A user-defined type.

  43. 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.

  44. type Width = Int

    Definition Classes
    PrettyPrinterBase
  45. case class ~[+a, +b] extends Product with Serializable

    Definition Classes
    Parsers

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 OnceParser[T](f: (Input) ⇒ ParseResult[T]): Parser[T] with OnceParser[T]

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

    Definition Classes
    PositionedParserUtilities → Parsers
  8. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]

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

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

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

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

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

    Definition Classes
    Parsers
  14. def ampersand: Doc

    Definition Classes
    PrettyPrinterBase
  15. def angles(d: Doc): Doc

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

    Definition Classes
    ParserUtilities
  17. def any(a: Any): Doc

    Definition Classes
    PrettyPrinterBase
  18. implicit def anyToPrettyPrintable(a: Any): PrettyPrintable

    Definition Classes
    PrettyPrinterBase
  19. def arraydimensToDoc(t1: CArrayType): Doc

    Definition Classes
    PrettyPrinter
  20. def artefact: String

    The name of this artefact.

    The name of this artefact.

    Definition Classes
    A4PhasesCompilerDriver
  21. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  22. lazy val assignment: Parser[Assignment]

    Definition Classes
    Parser
  23. def asterisk: Doc

    Definition Classes
    PrettyPrinterBase
  24. def atsign: Doc

    Definition Classes
    PrettyPrinterBase
  25. def backquote: Doc

    Definition Classes
    PrettyPrinterBase
  26. def backslash: Doc

    Definition Classes
    PrettyPrinterBase
  27. def baseUsageMessage: String

    Definition Classes
    DriverCompilerDriver
  28. 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
  29. def basetypeToDoc(t: CType): Doc

  30. lazy val block: Parser[Block]

    Definition Classes
    Parser
  31. 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
  32. lazy val booleanType: BuiltinType

    Built-in Boolean type.

    Built-in Boolean type.

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

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

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

    Definition Classes
    PrettyPrinterBase
  36. def caret: Doc

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

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

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

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

    Definition Classes
    PrettyPrinter
  41. 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
  42. def cat(ds: Seq[Doc]): Doc

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

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

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

    Definition Classes
    Parsers
  46. var challengeFlag: Boolean

    Definition Classes
    CompilerDriver
  47. val challengeFlagDefault: Boolean

    Definition Classes
    CompilerDriver
  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 checkFor(record: Record, dim: Dimension, eventtype: String, needed: Dimension)(f: (Value) ⇒ Value): Value

    Definition Classes
    Values
  51. 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
  52. 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
    CompilerDriver → CompilerBase
  53. def clone(): AnyRef

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

    Definition Classes
    PrettyPrinterBase
  55. def comma: Doc

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

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

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

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

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

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

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

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

    Definition Classes
    ParserUtilities
  64. 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
  65. 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
  66. lazy val constdecl: Parser[ConstDecl]

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

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

    Definition Classes
    ParserUtilities
  69. 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
    TranslatingDriverCompilerDriver
  70. lazy val declarations: PackratParser[List[Declaration]]

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

    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

    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 dimValue(record: Record, dim: Dimension): Value

    Definition Classes
    Profiler → Profiler → Values
  85. def dollar: Doc

    Definition Classes
    PrettyPrinterBase
  86. def dot: Doc

    Definition Classes
    PrettyPrinterBase
  87. def dquote: Doc

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

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

    Definition Classes
    ProfilingCompiler → CompilerBase
  90. def elem(e: Elem): Parser[Elem]

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

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

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

    Definition Classes
    Parser
  94. def empty: Doc

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

    Definition Classes
    PrettyPrinterBase
  96. def encoding: String

    Definition Classes
    CompilerBase
  97. def enter(env: Environment): Environment

    Definition Classes
    Environments
  98. 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
  99. 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
  100. 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
  101. def envin(in: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

    Definition Classes
    NameAnalyserNameAnalyser
  102. 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
  103. def envout(out: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

    Definition Classes
    NameAnalyserNameAnalyser
  104. 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
  105. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  106. def equal: Doc

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

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

    Definition Classes
    ParserUtilities → Parsers
  109. def exclamation: Doc

    Definition Classes
    PrettyPrinterBase
  110. 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
  111. lazy val expression: Parser[Expression]

    Definition Classes
    Parser
  112. 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
  113. 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
  114. lazy val factor: PackratParser[Expression]

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

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

    Built-in false constant.

    Built-in false constant.

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

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

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

    Definition Classes
    Parser
  120. def fillcat(ds: Seq[Doc]): Doc

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

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

    Definition Classes
    PrettyPrinterBase
  123. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  124. def finishReport(): Unit

    Definition Classes
    Values
  125. lazy val fldidn: Parser[FieldIdn]

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

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

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

    Definition Classes
    Parser
  129. def forwslash: Doc

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

    Definition Classes
    Parser
  131. final def getClass(): Class[_]

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

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

    Definition Classes
    Parsers
  134. def handleWhiteSpace(in: Input): Int

    Definition Classes
    WhitespacePositionedParserUtilities → ParserUtilities
  135. def handleWhiteSpace(source: CharSequence, offset: Int): Int

    Attributes
    protected
    Definition Classes
    RegexParsers
  136. 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
  137. def hash: Doc

    Definition Classes
    PrettyPrinterBase
  138. def hashCode(): Int

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

    Definition Classes
    PrettyPrinterBase
  140. var helpFlag: Boolean

    Definition Classes
    CompilerDriver
  141. val helpFlagDefault: Boolean

    Definition Classes
    CompilerDriver
  142. def hsep(ds: Seq[Doc], sep: Doc): Doc

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

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

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

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

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

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

    Definition Classes
    Parser
  149. 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
  150. 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
  151. lazy val idnuse: Parser[IdnUse]

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

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

    Definition Classes
    PrettyPrinter
  154. def includeTimings: Boolean

    Definition Classes
    Profiler
  155. 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
    CompilerDriver
  156. var input: Option[String]

    Definition Classes
    CompilerDriver
  157. lazy val integerType: BuiltinType

    Built-in integer type.

    Built-in integer type.

    Definition Classes
    SymbolTable
  158. lazy val intexp: Parser[IntExp]

    Definition Classes
    Parser
  159. 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
  160. 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
  161. 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
  162. 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
  163. def isDefinedInEnv(env: Environment, i: String): Boolean

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

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

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

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

    Definition Classes
    Environments
  168. 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
  169. def isEventType(record: Record, eventtype: String): Boolean

    Definition Classes
    Values
  170. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. def isVariable(e: Entity): Boolean

    Parameters are variables too.

    Parameters are variables too.

    Definition Classes
    SymbolTableSymbolTable
  180. 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
  181. lazy val kase: Parser[Case]

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

    Definition Classes
    Parser
  183. def keywordStrings: List[String]

    Definition Classes
    ParserParserParserParserParserParser
  184. def keywords(ext: Regex, kws: List[String]): Parser[String]

    Definition Classes
    ParserUtilities
  185. def langle: Doc

    Definition Classes
    PrettyPrinterBase
  186. def langlevel: Int

    Definition Classes
    A4Phases
  187. def lbrace: Doc

    Definition Classes
    PrettyPrinterBase
  188. def lbracket: Doc

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

    Definition Classes
    Environments
  190. 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
  191. lazy val lhs: PackratParser[Expression]

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

    Definition Classes
    ParserParser
  193. def line: Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  194. def line(repl: Layout): Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  195. def linebreak: Doc

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

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

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

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

    Definition Classes
    Environments
  200. def lparen: Doc

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

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

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

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

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

    Definition Classes
    RegexCompiler → CompilerBase
  206. 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
  207. def memo[T](p: Parser[T]): PackratParser[T]

    Definition Classes
    PackratParsers
  208. def minus: Doc

    Definition Classes
    PrettyPrinterBase
  209. def mkList[T]: (~[T, List[T]]) ⇒ List[T]

    Definition Classes
    Parsers
  210. lazy val moduledecl: Parser[ModuleDecl]

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

    Definition Classes
    Parser
  212. def nanoToMs(nano: Long): Long

    Definition Classes
    Profiler
  213. final def ne(arg0: AnyRef): Boolean

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

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  215. def noparens(inner: PrettyOperatorExpression, outer: PrettyOperatorExpression, side: Side): Boolean

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

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

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

    Definition Classes
    AnyRef
  219. 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
  220. def opt[T](p: ⇒ Parser[T]): Parser[Option[T]]

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

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

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

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

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

    Definition Classes
    Parser
  226. def output(str: String): Unit

    Definition Classes
    Values
  227. def outputln(str: String): Unit

    Definition Classes
    Values
  228. 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
  229. 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
  230. def paramsToDoc(ds: List[Doc], sep: Doc): Doc

    Definition Classes
    PrettyPrinter
  231. 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
  232. def parens(d: Doc): Doc

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

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

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

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

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

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

    Definition Classes
    RegexParsers
  239. def parseAndPosition[T](f: (Input) ⇒ ParseResult[T], in: Input): ParseResult[T]

    Definition Classes
    PositionedParserUtilities
  240. def parseProfileOption(value: String): Seq[Dimension]

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

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

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

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

    Definition Classes
    ParserUtilities
  245. 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
  246. def parseString[T](parser: Parser[T], str: String): Either[T, String]

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

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

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

    Definition Classes
    PackratParsers
  250. var parsingWhitespace: Boolean

    Attributes
    protected
    Definition Classes
    WhitespaceParser
  251. def percent(v: Long, total: Long): String

    Definition Classes
    Profiler
  252. def percent: Doc

    Definition Classes
    PrettyPrinterBase
  253. def phrase[T](p: Parser[T]): PackratParser[T]

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

    Definition Classes
    PrettyPrinterBase
  255. def plus: Doc

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

    Definition Classes
    WhitespaceParser → RegexParsers → Parsers
  257. var pprintastFlag: Boolean

    Definition Classes
    CompilerDriver
  258. val pprintastFlagDefault: Boolean

    Definition Classes
    CompilerDriver
  259. var pprintcastFlag: Boolean

    Definition Classes
    TranslatingDriver
  260. val pprintcastFlagDefault: Boolean

    Definition Classes
    TranslatingDriver
  261. var pprintiastFlag: Boolean

    Definition Classes
    TransformingDriver
  262. val pprintiastFlagDefault: Boolean

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

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

    Definition Classes
    PrettyPrinterBase
  265. def pretty_any(a: Any): Layout

    Definition Classes
    PrettyPrinterBase
  266. def printDependencyGraph(record: Record, dim: Dimension): Unit

    Definition Classes
    Profiler
  267. def printReports(totalTime: Long, dimensionNames: Seq[Dimension], records: List[Record]): Unit

    Definition Classes
    Profiler
  268. var printTables: Boolean

    Definition Classes
    Values
  269. var printastFlag: Boolean

    Definition Classes
    CompilerDriver
  270. val printastFlagDefault: Boolean

    Definition Classes
    CompilerDriver
  271. var printcastFlag: Boolean

    Definition Classes
    TranslatingDriver
  272. val printcastFlagDefault: Boolean

    Definition Classes
    TranslatingDriver
  273. var printiastFlag: Boolean

    Definition Classes
    TransformingDriver
  274. val printiastFlagDefault: Boolean

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

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

    Definition Classes
    Parser
  277. def process(filename: String, 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
    CompilerDriver → Compiler → CompilerBase
  278. def processargs(args: List[String]): Boolean

  279. 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
    TransformingDriverCompilerDriver
  280. def profile[T](computation: ⇒ T, dimensionNames: Dimension*): T

    Definition Classes
    Profiler
  281. def profileStart(): Unit

    Definition Classes
    Profiler
  282. def profileStop(): (Seq[Dimension]) ⇒ Unit

    Definition Classes
    Profiler
  283. def profileStop(dimensionNames: Seq[Dimension]): Unit

    Definition Classes
    Profiler
  284. def profileStopInteractive(): Unit

    Definition Classes
    Profiler
  285. def question: Doc

    Definition Classes
    PrettyPrinterBase
  286. def rangle: Doc

    Definition Classes
    PrettyPrinterBase
  287. def rbrace: Doc

    Definition Classes
    PrettyPrinterBase
  288. def rbracket: Doc

    Definition Classes
    PrettyPrinterBase
  289. lazy val readProc: BuiltinProc

    The built-in Read procedure.

    The built-in Read procedure.

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

    Definition Classes
    WhitespaceParser → RegexParsers
  291. def regexnows(r: Regex): Parser[String]

    Definition Classes
    ParserUtilities
  292. def rep[T](p: ⇒ Parser[T]): Parser[List[T]]

    Definition Classes
    Parsers
  293. 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.

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

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

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

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

    Definition Classes
    Parsers
  298. def resetEnvironments: Unit

    Definition Classes
    Environments
  299. def resetflags(): Unit

  300. def result[T](v: ⇒ T): Parser[T]

    Definition Classes
    ParserUtilities
  301. 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
  302. def rootconstexpDef: (Expression) ⇒ Boolean

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

    Definition Classes
    Environments
  304. def rparen: Doc

    Definition Classes
    PrettyPrinterBase
  305. 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
    CompilerDriver
  306. def semi: Doc

    Definition Classes
    PrettyPrinterBase
  307. 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
  308. def sep(ds: Seq[Doc]): Doc

    Definition Classes
    PrettyPrinterBase
  309. lazy val simpexp: PackratParser[Expression]

    Definition Classes
    Parser
  310. def skipWhitespace: Boolean

    Definition Classes
    WhitespaceParser → RegexParsers
  311. def softbreak: Doc

    Definition Classes
    PrettyPrinterBase
  312. def softline: Doc

    Definition Classes
    PrettyPrinterBase
  313. def space: Doc

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

    Definition Classes
    PrettyPrinterBase
  315. def squote: Doc

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

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

    Definition Classes
    PrettyPrinterBase
  318. def startReport(dimensionNames: Seq[Dimension]): Unit

    Definition Classes
    Profiler → Values
  319. var startTime: Long

    Definition Classes
    Profiler
  320. lazy val statement: PackratParser[Statement]

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

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

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

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

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

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

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

    Definition Classes
    ParserUtilities
  328. def subjectsToStep(src: Any, dst: Any): Step

    Definition Classes
    Profiler
  329. def success[T](v: T): Parser[T]

    Definition Classes
    Parsers
  330. def summariseAlongDims(dimensionNames: Seq[Dimension], records: List[Record], nrecords: Int, profiledTime: Long): Unit

    Definition Classes
    Profiler
  331. def surround(d: Doc, b: Doc): Doc

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

    Definition Classes
    AnyRef
  333. def tasklevel: Int

    Definition Classes
    A4Phases
  334. lazy val term: PackratParser[Expression]

    Definition Classes
    Parser
  335. implicit def text(t: String): Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  336. def tilde: Doc

    Definition Classes
    PrettyPrinterBase
  337. def time[T](computation: ⇒ T, warmup: Int, n: Int, discard: Int): Unit

    Definition Classes
    Profiler
  338. lazy val tipe: (Expression) ⇒ Type

    The type of an expression.

    The type of an expression.

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

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

  341. def toDoc(n: SourceASTNode): Doc

  342. 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
  343. def toString(): String

    Definition Classes
    AnyRef → Any
  344. def trace(predicate: (Event) ⇒ Boolean): Unit

    Definition Classes
    Profiler
  345. 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
  346. 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
  347. def translate(t: Type): CType

    Add translation for array and record types.

    Add translation for array and record types.

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

    Add translation of call statements.

    Add translation of call statements.

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

    Add translation of procedure declarations.

    Add translation of procedure declarations.

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

    Add STDIO header since output is now possible.

    Add STDIO header since output is now possible.

    Definition Classes
    CCodeGeneratorCCodeGeneratorTranslator
  351. 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
  352. 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
  353. 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
  354. 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
  355. 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
  356. lazy val trueConstant: IntegerValue

    Built-in true constant.

    Built-in true constant.

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

    The actual type that a user type denotes.

    The actual type that a user type denotes.

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

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

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

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

    Definition Classes
    ParserParser
  362. def underscore: Doc

    Definition Classes
    PrettyPrinterBase
  363. 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
  364. 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
  365. def usageMessage: String

  366. def value(v: Any): Doc

    Definition Classes
    PrettyPrinterBase
  367. 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
  368. def valueToString(a: Value): String

    Definition Classes
    Values
  369. lazy val vardecl: Parser[VarDecl]

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

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

    Definition Classes
    PrettyPrinterBase
  372. def verticalbar: Doc

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

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

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

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

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

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

    Definition Classes
    Parser
  379. val whiteSpace: Regex

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

    Definition Classes
    Parser → WhitespaceParser
  381. def wrap[T, U](p: ⇒ Parser[T], f: (T) ⇒ Either[U, String]): Parser[U]

    Definition Classes
    ParserUtilities
  382. lazy val writeProc: BuiltinProc

    The built-in Write procedure.

    The built-in Write procedure.

    Definition Classes
    SymbolTable
  383. lazy val writelnProc: BuiltinProc

    The built-in WriteLn procedure.

    The built-in WriteLn procedure.

    Definition Classes
    SymbolTable

Deprecated Value Members

  1. def lastNoSuccess: NoSuccess

    Definition Classes
    Parsers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0

  2. def lastNoSuccess_=(x: NoSuccess): Unit

    Definition Classes
    Parsers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0

  3. def product(p: Any): Doc

    Definition Classes
    PrettyPrinterBase
    Annotations
    @deprecated
    Deprecated

    (Since version 1.2.1) Use PrettyPrinter.any instead.

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 L4.Parser

Inherited from L3.Parser

Inherited from L2.Parser

Inherited from L1.Parser

Inherited from L0.Parser

Inherited from base.Parser

Inherited from WhitespacePositionedParserUtilities

Inherited from PositionedParserUtilities

Inherited from WhitespaceParser

Inherited from ParserUtilities

Inherited from PackratParsers

Inherited from TranslatingDriver

Inherited from TransformingDriver

Inherited from Driver

Inherited from ProfilingCompiler[ModuleDecl]

Inherited from Profiler

Inherited from Profiler

Inherited from Values

Inherited from CompilerDriver

Inherited from PrettyPrinter

Inherited from PrettyPrinterBase

Inherited from Compiler[ModuleDecl]

Inherited from RegexCompiler[ModuleDecl]

Inherited from RegexParsers

Inherited from Parsers

Inherited from CompilerBase[ModuleDecl]

Inherited from AnyRef

Inherited from Any

Ungrouped