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