org.kiama

util

package util

Visibility
  1. Public
  2. All

Type Members

  1. trait Compiler[T <: Attributable] extends RegexCompiler[T]

    A compiler that uses RegexParser to produce Attributable ASTs.

  2. trait CompilerBase[T] extends AnyRef

    Trait to provide basic functionality for a compiler-like program constructed from phases.

  3. class Console extends AnyRef

    A console using which input data can be read from standard input.

  4. class Emitter extends AnyRef

    Class of objects that can emit arbitrary output.

  5. trait Environments extends AnyRef

    General implementation of environments as stacked scopes.

  6. class FileConsole extends Console with ReaderConsole

    A console that reads from the given UTF-8 encoded file.

  7. class FileEmitter extends StringEmitter

    A string emitter that also provides a close method to send the result to the named UTF-8 encoded file.

  8. trait ParserUtilities extends RegexParsers with PackratParsers

    Useful utilities for defining regular expression packrat parsers.

  9. trait ParsingREPL[T] extends ParsingREPLBase[T] with StdoutEmitter

    A REPL that parses its input lines into a value (such as an abstract syntax tree), then processes them.

  10. trait ParsingREPLBase[T] extends REPLBase with RegexParsers

    A REPL that parses its input lines into a value (such as an abstract syntax tree), then processes them.

  11. trait Positioned extends AnyRef

    Class to keep track of line and column positions.

  12. trait PositionedParserUtilities extends ParserUtilities

    An extension of ParserUtilities that has support for automatically tracking start and finish positions for tree nodes.

  13. trait REPL extends REPLBase with StdoutEmitter

    General support for applications that implement read-eval-print loops (REPLs).

  14. trait REPLBase extends AnyRef

    General support for applications that implement read-eval-print loops (REPLs).

  15. trait ReaderConsole extends Console

    A console that reads from a given buffered reader.

  16. trait RegexCompiler[T] extends CompilerBase[T] with RegexParsers

    A compiler that uses a Scala combinator character-level parser.

  17. trait StdoutEmitter extends AnyRef

    General support for mixing in an emitter that sends to standard output.

  18. class StringConsole extends Console with ReaderConsole

    A console that returns from a specified string.

  19. class StringEmitter extends Emitter

    An emitter that records the output in a string that can be accessed via the result method.

  20. trait WhitespaceParser extends ParserUtilities

    Support for defining the form of whitespace using a parser, rather than a regular expression.

  21. trait WhitespacePositionedParserUtilities extends WhitespaceParser with PositionedParserUtilities

    Combination of positioned parsing utilities and whitespace handling with a parser.

Value Members

  1. object IO extends AnyRef

    Utility wrapper for I/O to isolate Kiama code from some Java I/O details.

  2. object JLineConsole extends Console

    A console that provides line editing using JLine.

  3. object Messaging extends AnyRef

    Facility for buffering of messages associated with positioned values.

  4. object Patterns extends AnyRef

    Patterns that are useful when processing trees.