kiama.example.til

trait TIL1_1

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

trait TIL1_1
extends ParsingMain
Parser for the basic Tiny Imperative Language.
Direct Known Subclasses:
TIL2_1, TIL1_1Main, TIL2_3, TIL2_2

Type Summary
type Root
The root type of the AST being processed.
Value Summary
lazy val assignment_statement : Parser[Assign]
lazy val comment : Parser[scala.List[Char]]
lazy val declaration : Parser[Decl]
lazy val endofline : Parser[Any]
lazy val expression : MemoParser[Exp]
lazy val factor : MemoParser[Exp]
lazy val for_statement : Parser[For]
lazy val identifier : Parser[Id]
lazy val if_statement : Parser[scala.Product with Stat]
lazy val integer : Parser[Num]
lazy val keyword : Parser[java.lang.String]
override lazy val layout : Parser[scala.List[Nothing]]
lazy val parse : Parser[Program]
Parse a file, returning an AST.
lazy val primary : MemoParser[Exp]
lazy val program : Parser[Program]
lazy val read_statement : Parser[Read]
lazy val statement : Parser[Stat]
lazy val string : Parser[Str]
lazy val term : MemoParser[Exp]
lazy val while_statement : Parser[While]
lazy val write_statement : Parser[Write]
Values and Variables inherited from CharParsers
whitespace, digit, letter, letterOrDigit
Values and Variables inherited from PackratParsers
heads, LRStack
Values and Variables inherited from Parsers
any
Methods inherited from ParsingMain
process
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
type Root
The root type of the AST being processed.

Value Details
lazy val parse : Parser[Program]
Parse a file, returning an AST.
Overrides
ParsingMain.parse

lazy val program : Parser[Program]

lazy val statement : Parser[Stat]

lazy val declaration : Parser[Decl]

lazy val assignment_statement : Parser[Assign]

lazy val if_statement : Parser[scala.Product with Stat]

lazy val while_statement : Parser[While]

lazy val for_statement : Parser[For]

lazy val read_statement : Parser[Read]

lazy val write_statement : Parser[Write]

lazy val expression : MemoParser[Exp]

lazy val term : MemoParser[Exp]

lazy val factor : MemoParser[Exp]

lazy val primary : MemoParser[Exp]

lazy val keyword : Parser[java.lang.String]

lazy val identifier : Parser[Id]

lazy val integer : Parser[Num]

lazy val string : Parser[Str]

lazy val comment : Parser[scala.List[Char]]

lazy val endofline : Parser[Any]

override lazy val layout : Parser[scala.List[Nothing]]