org.kiama.example.oberon0.drivers

A1Phases

trait A1Phases extends Driver with Parser with PrettyPrinter with NameAnalyser

Linear Supertypes
NameAnalyser, NameAnalyser, SymbolTable, SymbolTable, Environments, Analyser, PrettyPrinter, PrettyPrinter, PrettyPrinter, PrettyPrinter, SourcePrettyPrinter, ParenPrettyPrinter, Parser, Parser, Parser, Parser, WhitespaceParser, ParserUtilities, PackratParsers, RegexParsers, Parsers, Driver, PrettyPrinter, PrettyPrinterBase, Compiler[ModuleDecl], RegexCompiler[ModuleDecl], CompilerBase[ModuleDecl], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. A1Phases
  2. NameAnalyser
  3. NameAnalyser
  4. SymbolTable
  5. SymbolTable
  6. Environments
  7. Analyser
  8. PrettyPrinter
  9. PrettyPrinter
  10. PrettyPrinter
  11. PrettyPrinter
  12. SourcePrettyPrinter
  13. ParenPrettyPrinter
  14. Parser
  15. Parser
  16. Parser
  17. Parser
  18. WhitespaceParser
  19. ParserUtilities
  20. PackratParsers
  21. RegexParsers
  22. Parsers
  23. Driver
  24. PrettyPrinter
  25. PrettyPrinterBase
  26. Compiler
  27. RegexCompiler
  28. CompilerBase
  29. AnyRef
  30. Any
Visibility
  1. Public
  2. All

Type Members

  1. trait Builtin extends Named

    Marker trait for all built-in entities.

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

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

  4. type Elem = Char

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

    An entity that represents some program object.

  6. 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
  7. trait ErrorEntity extends Entity

    An entity that represents an error situation.

  8. type Indent = Int

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

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

  11. type Layout = String

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

    A user-defined module represented by a module declaration.

  13. trait Named extends AnyRef

    Support for unique ids for named things.

  14. trait NamedEntity extends Entity with Named

    A named entity.

  15. type Scope = Map[String, Entity]

    A scope maps identifiers to entities.

    A scope maps identifiers to entities.

    Definition Classes
    Environments
  16. abstract class Type extends Entity

    An entity representing by a user-provided type declaration.

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

    A user-defined type.

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

  19. type Width = Int

    Definition Classes
    PrettyPrinterBase
  20. abstract type _$4

    Definition Classes
    PackratParsers
  21. abstract type _$4

    Definition Classes
    PackratParsers
  22. abstract type _$4

    Definition Classes
    PackratParsers
  23. abstract type _$5

    Definition Classes
    PackratParsers
  24. abstract type _$5

    Definition Classes
    PackratParsers
  25. abstract type _$5

    Definition Classes
    PackratParsers
  26. abstract type _$6

    Definition Classes
    PackratParsers
  27. abstract type _$6

    Definition Classes
    PackratParsers
  28. abstract type _$6

    Definition Classes
    PackratParsers
  29. abstract type _$7

    Definition Classes
    PackratParsers
  30. abstract type _$7

    Definition Classes
    PackratParsers
  31. abstract type _$7

    Definition Classes
    PackratParsers
  32. abstract type _$8

    Definition Classes
    PackratParsers
  33. abstract type _$8

    Definition Classes
    PackratParsers
  34. abstract type _$8

    Definition Classes
    PackratParsers
  35. abstract type _$9

    Definition Classes
    PackratParsers
  36. abstract type _$9

    Definition Classes
    PackratParsers
  37. 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 artefact: String

    The name of this artefact.

    The name of this artefact.

    Definition Classes
    A1PhasesDriver
  22. final def asInstanceOf[T0]: T0

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

    Definition Classes
    Parser
  24. def backslash: Doc

    Definition Classes
    PrettyPrinterBase
  25. lazy val block: Parser[Block]

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

    Built-in Boolean type.

    Built-in Boolean type.

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

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

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

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

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

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

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

    Definition Classes
    PrettyPrinter
  35. def cat(ds: Seq[Doc]): Doc

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

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

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

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

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

    Definition Classes
    PrettyPrinterBase
  41. 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
    NameAnalyserAnalyser
  42. 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
  43. def clone(): AnyRef

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

    Definition Classes
    PrettyPrinterBase
  45. def comma: Doc

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

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

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

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

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

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

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

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

    Definition Classes
    ParserUtilities
  54. 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
  55. 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
  56. lazy val constdecl: Parser[ConstDecl]

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

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

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

    Process the AST, returning the new one.

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

    Definition Classes
    Driver
  60. lazy val declarations: PackratParser[List[Declaration]]

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

    Definition Classes
    ParserParser
  62. def declsToDoc(ds: List[Declaration]): Doc

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

    Definition Classes
    PrettyPrinterPrettyPrinter
  64. val defaultIndent: Int

    Definition Classes
    PrettyPrinterBase
  65. val defaultWidth: Int

    Definition Classes
    PrettyPrinterBase
  66. def defenv: Environment

    The default environment.

    The default environment.

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

    Definition Classes
    SymbolTable
  68. 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
  69. def dot: Doc

    Definition Classes
    PrettyPrinterBase
  70. def dquote: Doc

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

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

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

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

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

    Definition Classes
    Parser
  77. def empty: Doc

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

    Definition Classes
    PrettyPrinterBase
  79. 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
  80. 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
  81. 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
    NameAnalyser
  82. 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
  83. def envin(in: (SourceASTNode) ⇒ Environment): ==>[SourceASTNode, Environment]

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

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

    Definition Classes
    AnyRef
  86. def equal: Doc

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

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

    Definition Classes
    ParserUtilities → Parsers
  89. 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
  90. lazy val expression: Parser[Expression]

    Definition Classes
    Parser
  91. lazy val factor: PackratParser[Expression]

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

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

    Built-in false constant.

    Built-in false constant.

    Definition Classes
    SymbolTable
  94. def fillcat(ds: Seq[Doc]): Doc

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

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

    Definition Classes
    PrettyPrinterBase
  97. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  98. lazy val forStatement: Parser[ForStatement]

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

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

    Definition Classes
    Parser
  101. def forwslash: Doc

    Definition Classes
    PrettyPrinterBase
  102. final def getClass(): java.lang.Class[_]

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

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

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

    Attributes
    protected
    Definition Classes
    RegexParsers
  106. def hashCode(): Int

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

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

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

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

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

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

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

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

    Definition Classes
    Parser
  115. lazy val idnuse: Parser[IdnUse]

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

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

    Definition Classes
    PrettyPrinter
  118. 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
  119. val input: SingleValueParameter[String]

    Definition Classes
    Driver
  120. lazy val integerType: BuiltinType

    Built-in integer type.

    Built-in integer type.

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

    Definition Classes
    Parser
  122. 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
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. 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
  129. 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
  130. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  131. 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
  132. 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
    NameAnalyser
  133. 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
  134. 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
  135. 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
  136. def isVariable(e: Entity): Boolean

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

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

    Definition Classes
    SymbolTable
  137. 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
  138. lazy val kase: Parser[Case]

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

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

    Definition Classes
    ParserParserParserParser
  141. def langle: Doc

    Definition Classes
    PrettyPrinterBase
  142. def langlevel: Int

  143. var lastNoSuccess: NoSuccess

    Definition Classes
    Parsers
  144. def lbrace: Doc

    Definition Classes
    PrettyPrinterBase
  145. def lbracket: Doc

    Definition Classes
    PrettyPrinterBase
  146. 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
  147. lazy val lhs: Parser[Expression]

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

    Definition Classes
    Parser
  149. lazy val lhsNoPos: PackratParser[Expression]

    Definition Classes
    Parser
  150. def line: Doc

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  151. def linebreak: Doc

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

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

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

    Definition Classes
    Parsers
  155. 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
  156. def lparen: Doc

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

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

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

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

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

    Definition Classes
    RegexCompiler → CompilerBase
  162. def memo[T](p: Parser[T]): PackratParser[T]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Parser
  177. def parens(d: Doc): Doc

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    ParserUtilities
  188. 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
  189. def parseWhitespace(in: Input): ParseResult[Any]

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

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

    Definition Classes
    PackratParsers
  192. var parsingWhitespace: Boolean

    Attributes
    protected
    Definition Classes
    WhitespaceParser
  193. def phrase[T](p: Parser[T]): PackratParser[T]

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

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

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

    Definition Classes
    Driver
  197. def pretty(d: Doc, w: Width): Layout

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

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

    Definition Classes
    Driver
  200. 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
  201. def processast(ast: ModuleDecl, console: Console, emitter: Emitter): ModuleDecl

    Process the AST, returning the new one.

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

    Definition Classes
    Driver
  202. def product(p: Any): Doc

    Definition Classes
    PrettyPrinterBase
  203. def rangle: Doc

    Definition Classes
    PrettyPrinterBase
  204. def rbrace: Doc

    Definition Classes
    PrettyPrinterBase
  205. def rbracket: Doc

    Definition Classes
    PrettyPrinterBase
  206. implicit def regex(r: Regex): Parser[String]

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

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

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

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

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

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

    Definition Classes
    Parsers
  213. def resetEnvironments: Unit

    Reset the environment module.

    Reset the environment module.

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

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

    Definition Classes
    NameAnalyserNameAnalyser
  217. 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
  218. def rparen: Doc

    Definition Classes
    PrettyPrinterBase
  219. 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
  220. def semi: Doc

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

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

    Definition Classes
    Parser
  224. def skipWhitespace: Boolean

    Definition Classes
    WhitespaceParser → RegexParsers
  225. def softbreak: Doc

    Definition Classes
    PrettyPrinterBase
  226. def softline: Doc

    Definition Classes
    PrettyPrinterBase
  227. def space: Doc

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

    Definition Classes
    PrettyPrinterBase
  229. def squote: Doc

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

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

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

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

    Definition Classes
    ParserParserParserParser
  234. lazy val statementSequence: Parser[Block]

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

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

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

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

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

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

    Definition Classes
    Parsers
  241. def surround(d: Doc, b: Doc): Doc

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

    Definition Classes
    AnyRef
  243. def tasklevel: Int

  244. lazy val term: Parser[Expression]

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

    Definition Classes
    PrettyPrinter → PrettyPrinterBase
  246. def toDoc(n: SourceASTNode): Doc

  247. def toParenDoc(e: PrettyExpression): Doc

    Definition Classes
    PrettyPrinter → ParenPrettyPrinter
  248. def toString(): String

    Definition Classes
    AnyRef → Any
  249. lazy val trueConstant: IntegerValue

    Built-in true constant.

    Built-in true constant.

    Definition Classes
    SymbolTable
  250. lazy val typedecl: Parser[TypeDecl]

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

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

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

    Definition Classes
    Parser
  254. 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
  255. def value(v: Any): Doc

    Definition Classes
    PrettyPrinterBase
  256. 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
  257. lazy val vardecl: Parser[VarDecl]

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

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

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

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

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

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

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

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

    Definition Classes
    Parser
  266. val whiteSpace: Regex

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

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

    Definition Classes
    ParserUtilities

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 SourcePrettyPrinter

Inherited from ParenPrettyPrinter

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