kiama.example.til

trait ParsingMain

[source: kiama/example/til/ParsingMain.scala]

trait ParsingMain
extends Main with CharPackratParsers
Standard main program for TIL chairmarks that parse.
Direct Known Subclasses:
TIL1_1, TransformingMain

Type Summary
abstract type Root
The root type of the AST being processed.
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
abstract def parse : Parser[Root]
Parse a file, returning an AST.
def process (reader : java.io.Reader) : Any
Process the file given by the argument reader by parsing it and returning the resulting AST.
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 Main
main, test
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
abstract type Root
The root type of the AST being processed.

Method Details
def process(reader : java.io.Reader) : Any
Process the file given by the argument reader by parsing it and returning the resulting AST.
Overrides
Main.process

abstract def parse : Parser[Root]
Parse a file, returning an AST.