]> Cypherpunks repositories - gostls13.git/commit
Implement if, for (modulo ranges), break, continue, increment,
authorAustin Clements <aclements@csail.mit.edu>
Tue, 28 Jul 2009 21:37:06 +0000 (14:37 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Tue, 28 Jul 2009 21:37:06 +0000 (14:37 -0700)
commit709e75e3a1fa78d19102afb17edcb13e21efba56
treefd4c5541b8e38e8af07ff5f0cd9cb348f7c1031d
parent483e4fc409a83d27ad7ab5c2616e3da77bf43f4e
Implement if, for (modulo ranges), break, continue, increment,
and decrement.  blockCompilers now form a tree the mimics the
nesting of scopes and provide convenient ways to enter and
exit scopes.  blockCompilers also track the break and continue
PC for the current block.  The statement testing interface now
works in lists of statements, which simplifies a bunch of
things.

R=rsc
APPROVED=rsc
DELTA=401  (335 added, 44 deleted, 22 changed)
OCL=32308
CL=32317
usr/austin/eval/compiler.go
usr/austin/eval/func.go
usr/austin/eval/stmt.go