bcg
Class Parser.yyTree

java.lang.Object
  extended by bcg.Parser.yyTree
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Parser

public static class Parser.yyTree
extends java.lang.Object
implements java.io.Serializable

tree factory

See Also:
Serialized Form

Nested Class Summary
static class Parser.yyTree.Add
          tree node class.
static class Parser.yyTree.And
          tree node class.
static class Parser.yyTree.Arg
          tree node class.
static class Parser.yyTree.Arr
          tree node class.
static class Parser.yyTree.Assign
          tree node class.
static class Parser.yyTree.Blck
          tree node class.
static class Parser.yyTree.Bool
          tree node class.
static class Parser.yyTree.Decl
          tree node class.
static class Parser.yyTree.DeclS
          tree node class.
static class Parser.yyTree.DeclT
          tree node class.
static class Parser.yyTree.Div
          tree node class.
static class Parser.yyTree.Elem
          tree node class.
static class Parser.yyTree.Equal
          tree node class.
static class Parser.yyTree.Exp
          tree node class.
static class Parser.yyTree.Func
          tree node class.
static class Parser.yyTree.GreatEq
          tree node class.
static class Parser.yyTree.Greater
          tree node class.
static class Parser.yyTree.IfBlock
          tree node class.
static class Parser.yyTree.Length
          tree node class.
static class Parser.yyTree.Less
          tree node class.
static class Parser.yyTree.LessEq
          tree node class.
static class Parser.yyTree.Lit
          tree node class.
static class Parser.yyTree.Mod
          tree node class.
static class Parser.yyTree.Mul
          tree node class.
static class Parser.yyTree.Neg
          tree node class.
static class Parser.yyTree.Not
          tree node class.
static class Parser.yyTree.NotEq
          tree node class.
static class Parser.yyTree.Or
          tree node class.
static class Parser.yyTree.Prog
          tree node class.
static class Parser.yyTree.SemiBlck
          tree node class.
static class Parser.yyTree.SimpleIf
          tree node class.
static class Parser.yyTree.SimpleUnless
          tree node class.
static class Parser.yyTree.Str
          tree node class.
static class Parser.yyTree.Sub
          tree node class.
static class Parser.yyTree.SubCall
          tree node class.
static class Parser.yyTree.Subrtn
          tree node class.
static class Parser.yyTree.UnlessBlock
          tree node class.
static class Parser.yyTree.UntilBlock
          tree node class.
static class Parser.yyTree.Var
          tree node class.
static interface Parser.yyTree.Visit
          what each tree class will do.
static interface Parser.yyTree.Visitor
          what a visitor must do: receive each tree class separately.
static class Parser.yyTree.WhileBlock
          tree node class.
 
Constructor Summary
Parser.yyTree()
           
 
Method Summary
 Parser.yyTree.Add add(int position, java.util.List args)
          factory method.
 Parser.yyTree.And and(int position, java.util.List args)
          factory method.
 Parser.yyTree.Arg argument(int position, java.util.List args)
          factory method.
 Parser.yyTree.Assign assign(int position, java.util.List args)
          factory method.
 Parser.yyTree.Blck block(int position, java.util.List args)
          factory method.
 Parser.yyTree.Bool bool(int position, java.util.List args)
          factory method.
 Parser.yyTree.DeclS decl_sized(int position, java.util.List args)
          factory method.
 Parser.yyTree.DeclT decl_typed(int position, java.util.List args)
          factory method.
 Parser.yyTree.Decl decl_untyped(int position, java.util.List args)
          factory method.
 Parser.yyTree.Div div(int position, java.util.List args)
          factory method.
 Parser.yyTree.Elem elem(int position, java.util.List args)
          factory method.
 Parser.yyTree.Equal eq(int position, java.util.List args)
          factory method.
 Parser.yyTree.Exp exp(int position, java.util.List args)
          factory method.
 Parser.yyTree.Func func(int position, java.util.List args)
          factory method.
 Parser.yyTree.GreatEq ge(int position, java.util.List args)
          factory method.
 Parser.yyTree.Greater gt(int position, java.util.List args)
          factory method.
 Parser.yyTree.IfBlock ifblock(int position, java.util.List args)
          factory method.
 Parser.yyTree.LessEq le(int position, java.util.List args)
          factory method.
 Parser.yyTree.Length length(int position, java.util.List args)
          factory method.
 Parser.yyTree.Arr list(int position, java.util.List args)
          factory method.
 Parser.yyTree.Lit lit(int position, java.util.List args)
          factory method.
 Parser.yyTree.Less lt(int position, java.util.List args)
          factory method.
 Parser.yyTree.Mod mod(int position, java.util.List args)
          factory method.
 Parser.yyTree.Mul mul(int position, java.util.List args)
          factory method.
 Parser.yyTree.NotEq ne(int position, java.util.List args)
          factory method.
 Parser.yyTree.Neg neg(int position, java.util.List args)
          factory method.
 Parser.yyTree.Not not(int position, java.util.List args)
          factory method.
 Parser.yyTree.Or or(int position, java.util.List args)
          factory method.
 Parser.yyTree.Prog program(int position, java.util.List args)
          factory method.
 Parser.yyTree.SemiBlck semiblock(int position, java.util.List args)
          factory method.
 Parser.yyTree.SimpleIf simpleif(int position, java.util.List args)
          factory method.
 Parser.yyTree.SimpleUnless simpleunless(int position, java.util.List args)
          factory method.
 Parser.yyTree.Str str(int position, java.util.List args)
          factory method.
 Parser.yyTree.Sub sub(int position, java.util.List args)
          factory method.
 Parser.yyTree.SubCall subcall(int position, java.util.List args)
          factory method.
 Parser.yyTree.Subrtn subroutine(int position, java.util.List args)
          factory method.
 Parser.yyTree.UnlessBlock unlessblock(int position, java.util.List args)
          factory method.
 Parser.yyTree.UntilBlock untilblock(int position, java.util.List args)
          factory method.
 Parser.yyTree.Var var(int position, java.util.List args)
          factory method.
 Parser.yyTree.WhileBlock whileblock(int position, java.util.List args)
          factory method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser.yyTree

public Parser.yyTree()
Method Detail

program

public Parser.yyTree.Prog program(int position,
                                  java.util.List args)
factory method.


or

public Parser.yyTree.Or or(int position,
                           java.util.List args)
factory method.


and

public Parser.yyTree.And and(int position,
                             java.util.List args)
factory method.


not

public Parser.yyTree.Not not(int position,
                             java.util.List args)
factory method.


eq

public Parser.yyTree.Equal eq(int position,
                              java.util.List args)
factory method.


ne

public Parser.yyTree.NotEq ne(int position,
                              java.util.List args)
factory method.


lt

public Parser.yyTree.Less lt(int position,
                             java.util.List args)
factory method.


le

public Parser.yyTree.LessEq le(int position,
                               java.util.List args)
factory method.


ge

public Parser.yyTree.GreatEq ge(int position,
                                java.util.List args)
factory method.


gt

public Parser.yyTree.Greater gt(int position,
                                java.util.List args)
factory method.


add

public Parser.yyTree.Add add(int position,
                             java.util.List args)
factory method.


sub

public Parser.yyTree.Sub sub(int position,
                             java.util.List args)
factory method.


mul

public Parser.yyTree.Mul mul(int position,
                             java.util.List args)
factory method.


div

public Parser.yyTree.Div div(int position,
                             java.util.List args)
factory method.


mod

public Parser.yyTree.Mod mod(int position,
                             java.util.List args)
factory method.


exp

public Parser.yyTree.Exp exp(int position,
                             java.util.List args)
factory method.


neg

public Parser.yyTree.Neg neg(int position,
                             java.util.List args)
factory method.


var

public Parser.yyTree.Var var(int position,
                             java.util.List args)
factory method.


lit

public Parser.yyTree.Lit lit(int position,
                             java.util.List args)
factory method.


str

public Parser.yyTree.Str str(int position,
                             java.util.List args)
factory method.


bool

public Parser.yyTree.Bool bool(int position,
                               java.util.List args)
factory method.


func

public Parser.yyTree.Func func(int position,
                               java.util.List args)
factory method.


list

public Parser.yyTree.Arr list(int position,
                              java.util.List args)
factory method.


elem

public Parser.yyTree.Elem elem(int position,
                               java.util.List args)
factory method.


length

public Parser.yyTree.Length length(int position,
                                   java.util.List args)
factory method.


decl_untyped

public Parser.yyTree.Decl decl_untyped(int position,
                                       java.util.List args)
factory method.


decl_typed

public Parser.yyTree.DeclT decl_typed(int position,
                                      java.util.List args)
factory method.


decl_sized

public Parser.yyTree.DeclS decl_sized(int position,
                                      java.util.List args)
factory method.


whileblock

public Parser.yyTree.WhileBlock whileblock(int position,
                                           java.util.List args)
factory method.


untilblock

public Parser.yyTree.UntilBlock untilblock(int position,
                                           java.util.List args)
factory method.


ifblock

public Parser.yyTree.IfBlock ifblock(int position,
                                     java.util.List args)
factory method.


semiblock

public Parser.yyTree.SemiBlck semiblock(int position,
                                        java.util.List args)
factory method.


unlessblock

public Parser.yyTree.UnlessBlock unlessblock(int position,
                                             java.util.List args)
factory method.


simpleif

public Parser.yyTree.SimpleIf simpleif(int position,
                                       java.util.List args)
factory method.


simpleunless

public Parser.yyTree.SimpleUnless simpleunless(int position,
                                               java.util.List args)
factory method.


assign

public Parser.yyTree.Assign assign(int position,
                                   java.util.List args)
factory method.


subcall

public Parser.yyTree.SubCall subcall(int position,
                                     java.util.List args)
factory method.


block

public Parser.yyTree.Blck block(int position,
                                java.util.List args)
factory method.


subroutine

public Parser.yyTree.Subrtn subroutine(int position,
                                       java.util.List args)
factory method.


argument

public Parser.yyTree.Arg argument(int position,
                                  java.util.List args)
factory method.



Written by Brian Gernhardt for Compiler Construction at RIT, Winter 2010