Rob Pike
1fc8e6f74a
update tests
...
R=gri
OCL=13469
CL=13469
2008-07-25 12:20:14 -07:00
Ken Thompson
ece3e57c85
read select
...
R=r
APPROVED=r
DELTA=120 (108 added, 0 deleted, 12 changed)
OCL=13468
CL=13468
2008-07-25 11:58:26 -07:00
Robert Griesemer
5fc7919147
Experiments with "export":
...
Allow "export" keyword in front of a declaration. Semantics:
export *top-level* identifiers declared (but not the fields
of a struct type for instance).
R=r
OCL=13464
CL=13464
2008-07-25 11:27:13 -07:00
Robert Griesemer
cf4c37cac3
- more work on SimpleStat production
...
R=r
OCL=13461
CL=13461
2008-07-25 09:35:03 -07:00
Rob Pike
b4902c5f40
fix ordering problem: flag depends on fmt
...
R=gri
OCL=13442
CL=13442
2008-07-24 17:01:09 -07:00
Robert Griesemer
f03deb339a
- fixed several parser issues
...
R=r
OCL=13441
CL=13441
2008-07-24 17:00:58 -07:00
Ken Thompson
cb9b1038db
select
...
R=r
APPROVED=r
DELTA=638 (433 added, 21 deleted, 184 changed)
OCL=13426
CL=13438
2008-07-24 15:57:30 -07:00
Robert Griesemer
485d1bb3ed
- filed bug: label identifiers should not be allowed to match
...
other identifiers in the same scope.
R=r
OCL=13431
CL=13431
2008-07-24 13:36:18 -07:00
Robert Griesemer
d544ddb555
- filed bug: label names in different scopes should not conflict
...
R=r
OCL=13430
CL=13430
2008-07-24 13:30:49 -07:00
Rob Pike
7693409677
add usage message
...
R=gri
OCL=13423
CL=13423
2008-07-24 10:38:22 -07:00
Rob Pike
ac0dd5ae52
Add a flags package.
...
R=gri
OCL=13399
CL=13399
2008-07-23 20:02:54 -07:00
Rob Pike
5a30b5b8a9
new bug: x, ok = t.m[i] doesn't compile
...
R=ken
OCL=13395
CL=13395
2008-07-23 18:11:17 -07:00
Robert Griesemer
fda1d16935
- parsing support for composite literals
...
R=r
OCL=13394
CL=13394
2008-07-23 16:59:06 -07:00
Robert Griesemer
b0ada5ddf7
- more work on semantic checks - not yet enabled by default
...
R=r
OCL=13391
CL=13391
2008-07-23 16:04:11 -07:00
Rob Pike
84c8d85fe6
slices and string/array concatenation
...
OCL=13382
CL=13382
2008-07-23 11:22:30 -07:00
Rob Pike
f4dcf51846
document initialization
...
OCL=13369
CL=13369
2008-07-22 17:53:53 -07:00
Rob Pike
35b7a174e6
maintain __.PKGDEF files in archives if the 'g' flag is given
...
use this facility to simplify the math lib-building script
R=ken
DELTA=183 (158 added, 16 deleted, 9 changed)
OCL=13364
CL=13366
2008-07-22 15:57:46 -07:00
Rob Pike
febbf82e8d
fix some bad spaces
...
OCL=13363
CL=13363
2008-07-22 15:25:09 -07:00
Rob Pike
220edc48da
Expand section on compound literals.
...
R=ken,gri
DELTA=31 (22 added, 0 deleted, 9 changed)
OCL=13351
CL=13362
2008-07-22 15:23:06 -07:00
Rob Pike
c1f5eda7a2
change date
...
OCL=13331
CL=13331
2008-07-21 18:06:39 -07:00
Rob Pike
05caa7f820
help management of empty pkg and lib directories in perforce
...
R=gri
DELTA=4 (4 added, 0 deleted, 0 changed)
OCL=13328
CL=13328
2008-07-21 17:10:49 -07:00
Rob Pike
777ee7163b
map delete
...
SVN=128258
2008-07-21 16:18:04 -07:00
Rob Pike
820f223af9
compiler crash in string('a', 'b', '\n');
...
SVN=128253
2008-07-21 15:41:39 -07:00
Ken Thompson
b78676a49d
start of select
...
random bugs fixed
SVN=128149
2008-07-20 20:13:07 -07:00
Ken Thompson
963753d3f9
tweaks to init
...
rand using init
SVN=128142
2008-07-20 13:33:45 -07:00
Ken Thompson
f24f8ffae0
init
...
SVN=128128
2008-07-19 18:39:12 -07:00
Rob Pike
15d472dd53
add an eval function (written by ken)
...
SVN=128122
2008-07-19 15:11:25 -07:00
Rob Pike
85c85e2b3f
test update
...
SVN=128120
2008-07-19 15:08:56 -07:00
Rob Pike
acf3d59847
update fmt to use some initialization
...
tweak ar so the pkgdef file doesn't cause it not to generate a symbol table
SVN=128119
2008-07-19 14:52:01 -07:00
Ken Thompson
c92aff2de7
init
...
SVN=128118
2008-07-19 14:37:02 -07:00
Ken Thompson
90da636c15
init filename vs pkgname
...
SVN=128117
2008-07-19 14:20:46 -07:00
Ken Thompson
fb3af53f4e
initialization
...
SVN=128115
2008-07-19 13:38:29 -07:00
Robert Griesemer
5a90ede8a4
- scanner returns now triple (tok, tok_pos, tok_val)
...
- initial try-out of AST data structures
- removed test_parser (not working anymore - parser needs more infrastructure)
SVN=128089
2008-07-18 17:18:29 -07:00
Robert Griesemer
e912c18c7c
- missing changes from prev. commit
...
SVN=128064
2008-07-18 14:23:04 -07:00
Rob Pike
f87a960adf
add doug's power series package
...
SVN=128063
2008-07-18 14:18:07 -07:00
Robert Griesemer
dead164cc0
- made initial export work
...
- added code for importing (not tested)
- various fixes
SVN=128061
2008-07-18 14:04:21 -07:00
Robert Griesemer
bce1c3f09a
- added 2 bugs tests
...
SVN=128056
2008-07-18 12:26:48 -07:00
Ken Thompson
4c5a165873
len(fixed array)
...
SVN=128050
2008-07-18 11:59:35 -07:00
Ken Thompson
0ca551fc36
loop in subtype
...
SVN=127933
2008-07-17 18:15:05 -07:00
Robert Griesemer
c3e9c7d106
- more front-end stuff: hooking up packages, preparing for exports
...
SVN=127931
2008-07-17 18:02:10 -07:00
Ken Thompson
41861ca7bb
one more time for divide
...
SVN=127911
2008-07-17 16:22:40 -07:00
Robert Griesemer
85303f2715
- moved struct Compilation into globals.go, adjusted deps
...
- bail out after > 10 errors
- fixed send/recv statements
SVN=127890
2008-07-17 15:11:46 -07:00
Ken Thompson
9e2d185040
div bug
...
[]ptr bug
proc reuses old g* structures
differnt assignment of offsets to parameters
SVN=127888
2008-07-17 15:03:39 -07:00
Robert Griesemer
d88c759e87
- moved package code into globals.go, adjusted deps
...
SVN=127887
2008-07-17 14:53:13 -07:00
Rob Pike
6426659db9
update tests
...
SVN=127826
2008-07-17 11:15:11 -07:00
Rob Pike
30a39e8f29
compiler bug: infinite recursion in subtype()
...
SVN=127822
2008-07-17 11:04:44 -07:00
Rob Pike
7eb7ff2b36
new channel syntax
...
select cleans up too
SVN=127816
2008-07-17 10:47:32 -07:00
Ken Thompson
814320c8b4
parameter in fn literals
...
SVN=127695
2008-07-16 18:31:01 -07:00
Ken Thompson
8003849498
parameter declartions in func literals
...
SVN=127678
2008-07-16 17:22:54 -07:00
Robert Griesemer
0e67654f94
- changed channel operators
...
- more work on packages
SVN=127671
2008-07-16 17:00:48 -07:00