예제 #1
0
 public UnaryOp(Token op_, AST value_)
 {
     op    = op_;
     value = value_;
 }
예제 #2
0
 public Parser(Lexer lexer_)
 {
     lexer         = lexer_;
     current_token = lexer.getNextToken();
 }
예제 #3
0
 public Num(Token token_)
 {
     token = token_;
     value = token_.value;
 }
예제 #4
0
 public Var(Token token_)
 {
     token = token_;
     value = token.value;
 }
예제 #5
0
 public BinOp(AST left_, Token op_, AST right_)
 {
     left  = left_;
     token = op = op_;
     right = right_;
 }