Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package kiama

    Kiama is a Scala library for language processing.

    Kiama is a Scala library for language processing. It is a project of the Programming Languages Research Group at Macquarie University. For full project details see the web site http://kiama.googlecode.com.

    Kiama's main components address tree decoration via attribute grammars (package attribution), tree transformation via strategic term rewriting (package rewriting), dynamic semantics (package machine) and pretty-printing (package output).

    The util package contains support modules for parsing, input/output, read-eval-print loops (REPLs) and pattern matching.

    The examples package (available as part of the Kiama tests) contains many examples of using Kiama to solve small to medium language processing problems.

    Definition Classes
    org
  • package output
    Definition Classes
    kiama
  • trait PrettyPrinter extends PrettyPrinterBase

    A pretty-printer implemented using the continuation-based approach from Section 3.3 of Swierstra, S., and Chitil, O.

    A pretty-printer implemented using the continuation-based approach from Section 3.3 of Swierstra, S., and Chitil, O. Linear, bounded, functional pretty-printing. Journal of Functional Programming 19, 01 (2008), 1–16.

    defaultIndent specifies the indentation to use if none is specified in uses of the nest method (default: 4). defaultWidth specifies the default output width (default: 75).

    Definition Classes
    output
  • Doc
  • DocOps
  • PrettyPrintable

class Doc extends ((Indent, Width)) ⇒ ((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]) ⇒ Trampoline[(Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]] with DocOps

Continuation representation of documents.

Source
PrettyPrinter.scala
Linear Supertypes
PrettyPrinter.DocOps, ((PrettyPrinter.Indent, PrettyPrinter.Width)) ⇒ ((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]) ⇒ Trampoline[(Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Doc
  2. DocOps
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Doc(f: DocCont)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def <%%>(e: Doc): Doc

    Align the argument below this document using a linebreak separator.

    Align the argument below this document using a linebreak separator.

    Definition Classes
    DocOps
  4. def <%>(e: Doc): Doc

    Align the argument below this document using a line separator.

    Align the argument below this document using a line separator.

    Definition Classes
    DocOps
  5. def <+>(e: Doc): Doc

    Return the concatenation of this document with the argument using a space separator.

    Return the concatenation of this document with the argument using a space separator.

    Definition Classes
    DocOps
  6. def </>(e: Doc): Doc

    Return the concatenation of this document with the argument using a softline separator.

    Return the concatenation of this document with the argument using a softline separator.

    Definition Classes
    DocOps
  7. def <>(e: Doc): Doc

    Return the concatenation of this document with the argument.

    Return the concatenation of this document with the argument.

    Definition Classes
    DocDocOps
  8. def <@>(e: Doc): Doc

    Return the concatenation of this document with the argument using a line separator.

    Return the concatenation of this document with the argument using a line separator.

    Definition Classes
    DocOps
  9. def <@@>(e: Doc): Doc

    Return the concatenation of this document with the argument using a linebreak separator.

    Return the concatenation of this document with the argument using a linebreak separator.

    Definition Classes
    DocOps
  10. def <\>(e: Doc): Doc

    Return the concatenation of this document with the argument using a softbreak separator.

    Return the concatenation of this document with the argument using a softbreak separator.

    Definition Classes
    DocOps
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def andThen[A](g: (((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]) ⇒ Trampoline[(Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]]) ⇒ A): ((PrettyPrinter.Indent, PrettyPrinter.Width)) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  13. def apply(iw: IW): (TreeCont) ⇒ Trampoline[TreeCont]
    Definition Classes
    Doc → Function1
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def compose[A](g: (A) ⇒ (PrettyPrinter.Indent, PrettyPrinter.Width)): (A) ⇒ ((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]) ⇒ Trampoline[(Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PrettyPrinter.DocOps

Inherited from ((PrettyPrinter.Indent, PrettyPrinter.Width)) ⇒ ((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]) ⇒ Trampoline[(Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]]

Inherited from AnyRef

Inherited from Any

Ungrouped