]> Cypherpunks repositories - gostls13.git/commit
Make the expression compiler not use the AST visitor. The
authorAustin Clements <aclements@csail.mit.edu>
Wed, 26 Aug 2009 00:57:40 +0000 (17:57 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Wed, 26 Aug 2009 00:57:40 +0000 (17:57 -0700)
commit36eee6d1e13c4d16c66259ce8da9318dcfda0459
treecde861533927fa08c63fc791c583d6a50f0ca158
parent87f2208bdaa983a7b3de9de98aa88b1f2cd1a4f9
Make the expression compiler not use the AST visitor.  The
statement compiler will be fixed in a later CL.

The input and output of the expression compiler are now
clearly distinguished.  In the process, I made the individual
expression compilers operate on the compiled form of their
children instead of AST nodes.  As a result, there are now
fewer places where I hand-craft intermediate expression nodes.

The diff looks scarier than it is, mostly because exprCompiler
has been split into the input and output types, resulting in
lots of little renames.

R=rsc
APPROVED=rsc
DELTA=774  (204 added, 199 deleted, 371 changed)
OCL=33851
CL=33851
usr/austin/eval/compiler.go
usr/austin/eval/expr.go
usr/austin/eval/stmt.go