org.bitbucket.inkytonik.kiama.util

ParsingREPL

trait ParsingREPL[T] extends ParsingREPLWithConfig[T, REPLConfig]

A REPL that parses its input lines into a value (such as an abstract syntax tree), then processes them. Output is emitted to standard output.

Source
REPL.scala
Linear Supertypes
ParsingREPLWithConfig[T, REPLConfig], ParsingREPLBase[T, REPLConfig], REPLBase[REPLConfig], Profiler, dsprofile.Profiler, Values, Messaging, PositionStore, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ParsingREPL
  2. ParsingREPLWithConfig
  3. ParsingREPLBase
  4. REPLBase
  5. Profiler
  6. Profiler
  7. Values
  8. Messaging
  9. PositionStore
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Child extends Step with Product with Serializable

    Definition Classes
    Profiler
  2. case class Dep extends Product with Serializable

    Definition Classes
    Profiler
  3. case class Record extends Product with Serializable

    Definition Classes
    Values
  4. abstract class Step extends AnyRef

    Definition Classes
    Profiler

Abstract Value Members

  1. abstract def banner: String

    Banner message that is printed before the REPL starts.

    Banner message that is printed before the REPL starts.

    Definition Classes
    REPLBase
  2. abstract val parser: Parser[T]

    The particular parser used to parse this compiler's input.

    The particular parser used to parse this compiler's input.

    Definition Classes
    ParsingREPLBase
  3. abstract val parsers: ParsersBase

    The suite of parsers that is used by this compiler.

    The suite of parsers that is used by this compiler.

    Definition Classes
    ParsingREPLBase
  4. abstract def process(source: Source, t: T, config: REPLConfig): Unit

    Process a user input value in the given configuration.

    Process a user input value in the given configuration.

    Definition Classes
    ParsingREPLBase

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def checkFor(record: Record, dim: Dimension, eventtype: String, needed: Dimension)(f: (Value) ⇒ Value): Value

    Definition Classes
    Values
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def column(message: Message): Option[Int]

    Definition Classes
    Messaging
  10. def createAndInitConfig(args: Seq[String]): Either[String, REPLConfig]

    Create and initialise the configuration for a particular run of the REPL.

    Create and initialise the configuration for a particular run of the REPL. Default: call createConfig and then initialise the resulting configuration. Returns either the created configuration or an error message describing why the configuration couldn't be created.

    Definition Classes
    REPLBase
  11. def createConfig(args: Seq[String]): REPLConfig

    Create the configuration for a particular run of the REPL.

    Create the configuration for a particular run of the REPL. If supplied, use emitter instead of a standard output emitter.

    Definition Classes
    ParsingREPLREPLBase
  12. def dimValue(record: Record, dim: Dimension): Value

    Definition Classes
    Profiler → Profiler → Values
  13. def driver(args: Seq[String]): Unit

    Driver for this REPL.

    Driver for this REPL. First, use the argument list to create a configuration for this execution. If the arguments parse ok, then print the REPL banner. Read lines from the console and pass non-null ones to processline. If ignoreWhitespaceLines is true, do not pass lines that contain just whitespace, otherwise do. Continue until processline returns false. Call prompt each time input is about to be read.

    Definition Classes
    REPLBase
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

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

    Definition Classes
    Values
  18. def formatMessage(message: Message): String

    Definition Classes
    Messaging
  19. def formatMessages(messages: Messages): String

    Definition Classes
    Messaging
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. def includeTimings: Boolean

    Definition Classes
    Profiler
  23. def isEventType(record: Record, eventtype: String): Boolean

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

    Definition Classes
    Any
  25. def line(message: Message): Option[Int]

    Definition Classes
    Messaging
  26. def main(args: Array[String]): Unit

    The entry point for this REPL.

    The entry point for this REPL.

    Definition Classes
    REPLBase
  27. implicit object messageOrdering extends Ordering[Message]

    Definition Classes
    Messaging
  28. def nanoToMs(nano: Long): Long

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

    Definition Classes
    AnyRef
  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. def output(str: String): Unit

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

    Definition Classes
    Values
  34. def parseProfileOption(value: String): Seq[Dimension]

    Definition Classes
    Profiler
  35. def percent(v: Long, total: Long): String

    Definition Classes
    Profiler
  36. def positionOf(message: Message): Option[Position]

    Definition Classes
    Messaging
  37. val positions: Positions

    Definition Classes
    PositionStore
  38. def printDependencyGraph(record: Record, dim: Dimension): Unit

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

    Definition Classes
    Profiler
  40. var printTables: Boolean

    Definition Classes
    Values
  41. final def processconsole(console: Console, prompt: String, config: REPLConfig): REPLConfig

    Process interactively entered lines, one by one, until end of file.

    Process interactively entered lines, one by one, until end of file.

    Definition Classes
    REPLBase
    Annotations
    @tailrec()
  42. def processfile(filename: String, config: REPLConfig): REPLConfig

    Process a file argument by passing its contents line-by-line to processline.

    Process a file argument by passing its contents line-by-line to processline.

    Definition Classes
    REPLBase
  43. final def processfiles(config: REPLConfig): REPLConfig

    Process the files one by one, allowing config to be updated each time and updated config to be used by the next file.

    Process the files one by one, allowing config to be updated each time and updated config to be used by the next file.

    Definition Classes
    REPLBase
  44. def processline(source: Source, console: Console, config: REPLConfig): Option[REPLConfig]

    Process a user input line by parsing it to get a value of type T, then passing it to the process method.

    Process a user input line by parsing it to get a value of type T, then passing it to the process method. Returns the configuration unchanged.

    Definition Classes
    ParsingREPLBaseREPLBase
  45. def processlines(config: REPLConfig): Unit

    Process interactively entered lines, one by one, until end of file.

    Process interactively entered lines, one by one, until end of file. Prompt with the given prompt.

    Definition Classes
    REPLBase
  46. def profile[T](computation: ⇒ T, dimensionNames: Seq[Dimension], logging: Boolean): T

    Definition Classes
    Profiler
  47. def profileStart(logging: Boolean): Unit

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

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

    Definition Classes
    Profiler
  50. def profileStopInteractive(): Unit

    Definition Classes
    Profiler
  51. def prompt: String

    Define the prompt (default: "> ").

    Define the prompt (default: "> ").

    Definition Classes
    REPLBase
  52. def report(messages: Messages, emitter: Emitter): Unit

    Definition Classes
    Messaging
  53. def startReport(dimensionNames: Seq[Dimension]): Unit

    Definition Classes
    Profiler → Values
  54. var startTime: Long

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

    Definition Classes
    Profiler
  56. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Definition Classes
    Profiler
  58. def toString(): String

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

    Definition Classes
    Profiler
  60. def valueToString(a: Value): String

    Definition Classes
    Values
  61. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ParsingREPLWithConfig[T, REPLConfig]

Inherited from ParsingREPLBase[T, REPLConfig]

Inherited from REPLBase[REPLConfig]

Inherited from Profiler

Inherited from dsprofile.Profiler

Inherited from Values

Inherited from Messaging

Inherited from PositionStore

Inherited from AnyRef

Inherited from Any

Ungrouped