mirror of
https://github.com/golang/go
synced 2024-11-26 16:57:14 -07:00
5a90ede8a4
- initial try-out of AST data structures - removed test_parser (not working anymore - parser needs more infrastructure) SVN=128089
23 lines
358 B
Go
23 lines
358 B
Go
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package AST
|
|
|
|
import Globals "globals"
|
|
import Universe "universe"
|
|
|
|
|
|
export Expr
|
|
type Expr struct {
|
|
typ *Globals.Type;
|
|
op int;
|
|
x, y *Expr;
|
|
}
|
|
|
|
|
|
export Stat
|
|
type Stat struct {
|
|
// To be completed
|
|
}
|