diff options
author | Austin Clements <aclements@csail.mit.edu> | 2009-08-12 17:24:05 -0700 |
---|---|---|
committer | Austin Clements <aclements@csail.mit.edu> | 2009-08-12 17:24:05 -0700 |
commit | 01edc945f1069ba3d38bd015af5725880fb779b4 (patch) | |
tree | ec3c881bd6fa67a13d54fbb8cc0ea286c84fb615 /usr/austin/eval/expr.go | |
parent | b935e1ee0aca587ca1ab9b07b7eb2ec2aacd900f (diff) | |
download | golang-01edc945f1069ba3d38bd015af5725880fb779b4.tar.gz |
Convert interpreter to whole-package compilation.
R=rsc
APPROVED=rsc
DELTA=334 (110 added, 211 deleted, 13 changed)
OCL=33135
CL=33137
Diffstat (limited to 'usr/austin/eval/expr.go')
-rw-r--r-- | usr/austin/eval/expr.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/usr/austin/eval/expr.go b/usr/austin/eval/expr.go index 6168dfc41..64243cfc0 100644 --- a/usr/austin/eval/expr.go +++ b/usr/austin/eval/expr.go @@ -6,7 +6,6 @@ package eval import ( "bignum"; - "eval"; "go/ast"; "go/scanner"; "go/token"; @@ -59,35 +58,6 @@ func newExprCompiler(c *exprContext, pos token.Position) *exprCompiler { }; } -// Operator generators -// TODO(austin) Remove these forward declarations -func (a *exprCompiler) genConstant(v Value) -func (a *exprCompiler) genIdentOp(level int, index int) -func (a *exprCompiler) genIndexArray(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genFuncCall(call func(f *Frame) []Value) -func (a *exprCompiler) genValue(vf func(*Frame) Value) -func (a *exprCompiler) genUnaryOpNeg(v *exprCompiler) -func (a *exprCompiler) genUnaryOpNot(v *exprCompiler) -func (a *exprCompiler) genUnaryOpXor(v *exprCompiler) -func (a *exprCompiler) genBinOpAdd(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpSub(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpMul(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpQuo(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpRem(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpAnd(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpOr(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpXor(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpAndNot(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpShl(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpShr(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpLss(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpGtr(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpLeq(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpGeq(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpEql(l *exprCompiler, r *exprCompiler) -func (a *exprCompiler) genBinOpNeq(l *exprCompiler, r *exprCompiler) -func genAssign(lt Type, r *exprCompiler) (func(lv Value, f *Frame)) - func (a *exprCompiler) copy() *exprCompiler { ec := newExprCompiler(a.exprContext, a.pos); ec.desc = a.desc; |