1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:20:12 -07:00
go/usr/gri/gosrc/ast.go
Robert Griesemer 7a799be49a - switch to new export syntax
- deprecate old syntax in this front-end (use -6g for compatibility)

R=r
OCL=13831
CL=13833
2008-08-04 15:37:47 -07:00

40 lines
709 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"
// ----------------------------------------------------------------------------
// Expressions
export type BinaryExpr struct {
typ_ *Globals.Type;
op int;
x, y Globals.Expr;
}
func (x *BinaryExpr) typ() *Globals.Type {
return x.typ_;
}
// ----------------------------------------------------------------------------
// Statements
export type Block struct {
// TODO fill in
}
export type IfStat struct {
cond Globals.Expr;
then_ Globals.Stat;
else_ Globals.Stat;
}