kiama.example.imperative

object Imperative

[source: kiama/example/imperative/Imperative.scala]

object Imperative
extends ParsingREPL[Stmt] with Parser
A read-eval-print loop for parsing imperative programs and printing thei abstract synax trees.
Values and Variables inherited from Parser
parse, stmt, asgnStmt, whileStmt, sequence, exp, term, factor, double, integer, variable, idn, keyword
Values and Variables inherited from CharParsers
whitespace, layout, digit, letter, letterOrDigit
Values and Variables inherited from PackratParsers
heads, LRStack
Values and Variables inherited from Parsers
any
Method Summary
def process (s : Stmt) : Unit
Process a user input value.
override def prompt : java.lang.String
Define the prompt (default: "> ").
override def setup : Unit
Carry out setup processing for the REPL. Default: do nothing.
Methods inherited from ParsingREPL
processline
Methods inherited from CharParsers
token, phrase, literal, regex, parse, parse, parse, parseAll, parseAll, parseAll
Methods inherited from PackratParsers
rep1, memo
Methods inherited from Parsers
Parser, success, failure, accept, acceptIf, opt, rep, rep1, repN, repsep, rep1sep, and, not
Methods inherited from REPL
main
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def setup : Unit
Carry out setup processing for the REPL. Default: do nothing.

override def prompt : java.lang.String
Define the prompt (default: "> ").

def process(s : Stmt) : Unit
Process a user input value.
Overrides
ParsingREPL.process