Esempio n. 1
0
 public Class(Token name, Expr superclass, List <Stmt.Function> methods)
 {
     Name       = name;
     Superclass = superclass;
     Methods    = methods;
 }
Esempio n. 2
0
 public Expression(Expr xpression)
 {
     Xpression = xpression;
 }
Esempio n. 3
0
 public While(Expr condition, Stmt body)
 {
     Condition = condition;
     Body      = body;
 }
Esempio n. 4
0
 public Var(Token name, Expr initializer)
 {
     Name        = name;
     Initializer = initializer;
 }
Esempio n. 5
0
 public Return(Token keyword, Expr value)
 {
     Keyword = keyword;
     Value   = value;
 }
Esempio n. 6
0
 public Print(Expr xpression)
 {
     Xpression = xpression;
 }
Esempio n. 7
0
 public If(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     Condition  = condition;
     ThenBranch = thenBranch;
     ElseBranch = elseBranch;
 }