Age | Commit message (Collapse) | Author | Files | Lines |
|
- fixed an issue with select
- added all bugs and fixedbugs tests that are syntactically correct to the test suite
- minor cosmetic changes
R=r
OCL=17759
CL=17759
|
|
this is just a branch.
next cl will update and add to build
R=rsc
DELTA=4528 (2264 added, 2264 deleted, 0 changed)
OCL=17670
CL=17672
|
|
R=rsc
DELTA=206 (79 added, 25 deleted, 102 changed)
OCL=17652
CL=17669
|
|
the right answer when a type name redefines an existing type.
R=rsc
DELTA=133 (53 added, 8 deleted, 72 changed)
OCL=17637
CL=17639
|
|
in general
R=rsc
DELTA=2 (1 added, 0 deleted, 1 changed)
OCL=17624
CL=17624
|
|
Beginnings of values.
typestrings are grabbed from the environment.
R=rsc
APPROVED=rsc
DELTA=1046 (952 added, 3 deleted, 91 changed)
OCL=17593
CL=17621
|
|
R=rsc
DELTA=1 (0 added, 1 deleted, 0 changed)
OCL=17514
CL=17514
|
|
R=r
OCL=17510
CL=17510
|
|
- added validation test verifying that pretty output compiles with 6g again (disabled at the moment)
- replaced another recursive function with an interative solution
R=r
OCL=17505
CL=17505
|
|
- converted 2 right-recursive parsing functions into iterative versions
- renamed node.go -> ast.go (clearer)
R=r
OCL=17496
CL=17498
|
|
R=r
OCL=17463
CL=17463
|
|
- as a result deleted some more code
R=r
OCL=17449
CL=17449
|
|
treating ":" as lowest-level binary operator
- more precise error message for composites
- added flag -columns (false) - when set, prints precise error column
- a few more tests
R=r
OCL=17428
CL=17428
|
|
- in selftest mode (-t) interpret comments of the form /* ERROR */ and /* SYNC */
and validate reported errors with the error markings in a file
- added initial selftest.go file
Also:
- fixed an issue with empty blocks
- generally report better error messages
- added many more tests to the test script (essentially all .go programs which
have no syntax errors)
R=r
OCL=17426
CL=17426
|
|
R=rsc
DELTA=421 (357 added, 17 deleted, 47 changed)
OCL=17388
CL=17401
|
|
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=17380
CL=17380
|
|
- more robust printing in presence of errors
- fixed incorrect printing of function literals
R=r
OCL=17378
CL=17378
|
|
R=rsc
DELTA=25 (19 added, 1 deleted, 5 changed)
OCL=17346
CL=17346
|
|
- fixed a bug with non-eof terminated //-style comments
- collecting comments
- first experiments with reproducing comments
(works but not very pretty, disabled for now)
- idempotent for all correct .go files we have checked in
R=r
OCL=17333
CL=17333
|
|
- fixed a couple of printing bugs
status: parses, reproduces, and idempotently reproduces all correct .go files
R=r
OCL=17332
CL=17332
|
|
R=rsc
DELTA=253 (153 added, 81 deleted, 19 changed)
OCL=17331
CL=17331
|
|
R=rsc
DELTA=366 (337 added, 7 deleted, 22 changed)
OCL=17321
CL=17324
|
|
R=r
OCL=17319
CL=17319
|
|
- typeguards, var decls, several printing bug fixed
- now fully idempotent on many files (which are accepted by 6g afterwards)
- still some detail issues
R=r
OCL=17310
CL=17310
|
|
R=r
OCL=17295
CL=17295
|
|
R=rsc
DELTA=225 (109 added, 107 deleted, 9 changed)
OCL=17294
CL=17294
|
|
file name change in next round.
R=rsc
DELTA=71 (18 added, 19 deleted, 34 changed)
OCL=17291
CL=17293
|
|
- fallthrough stat, label decls
- improved printing layout
R=r
OCL=17283
CL=17283
|
|
R=r
OCL=17243
CL=17245
|
|
main is a simple tester outside the Makefile.
R=rsc
DELTA=455 (455 added, 0 deleted, 0 changed)
OCL=17235
CL=17242
|
|
- almost there, receivers, labels, composites, comments are not yet printed
- runs through 18KLOC of Go code and prints it again
R=r
OCL=17237
CL=17237
|
|
- fixed expression and statement printing
- missing: declarations, comments
R=r
OCL=17207
CL=17207
|
|
next cl will update names and add to build
R=rsc
DELTA=1876 (938 added, 938 deleted, 0 changed)
OCL=17149
CL=17166
|
|
- accepts all Go code (use -s flag)
- complete rewrite of AST, AST building, and printing
(as a result much more compact)
- printing severely screwed up at the moment, but should be
fully working in 1 more day
R=r
DELTA=2118 (514 added, 980 deleted, 624 changed)
OCL=17161
CL=17161
|
|
fix some bugs in () ordering and rune processing
R=rsc
DELTA=72 (27 added, 5 deleted, 40 changed)
OCL=17147
CL=17147
|
|
clean up interface equality hack
still needs more tests; checking in for gccgo testing
R=rsc
DELTA=304 (261 added, 14 deleted, 29 changed)
OCL=17128
CL=17135
|
|
allocate into an array for easier scanning and printing.
R=rsc
DELTA=282 (193 added, 44 deleted, 45 changed)
OCL=16955
CL=16955
|
|
update printing.
R=rsc
DELTA=194 (60 added, 41 deleted, 93 changed)
OCL=16942
CL=16945
|
|
if in a if, for, or switch header, must be parenthesized
- implemented string concatenation
- simplified a lot of code
- added many more tests: can now parse all *.go files I got my hands on
- printing output currently broken in some cases, use with -s (silent) option
R=r
OCL=16932
CL=16934
|
|
delete unused This() in preparation for removing linking via array indexes
R=rsc
DELTA=26 (2 added, 23 deleted, 1 changed)
OCL=16895
CL=16909
|
|
will move elsewhere when more complete.
parses, does not execute.
no character classes yet.
R=rsc
DELTA=522 (522 added, 0 deleted, 0 changed)
OCL=16863
CL=16874
|
|
R=r
OCL=16869
CL=16869
|
|
R=r
OCL=16698
CL=16698
|
|
the parser accepts a bit more then it should)
R=r
OCL=16694
CL=16694
|
|
R=gri,r
OCL=16648
CL=16652
|
|
* 1. all statements and declarations are terminated by semicolons
* 2. semicolons can be omitted at top level.
* 3. semicolons can be omitted before and after the closing ) or }
* on a list of statements or declarations.
/home/rsc/bin/addsemi and then diff+tweak.
R=r,gri
OCL=16620
CL=16643
|
|
- fixed parsing of parameter lists (sigh)
R=r
DELTA=48 (22 added, 7 deleted, 19 changed)
OCL=16319
CL=16321
|
|
R=r
OCL=16274
CL=16274
|
|
- some scanner cleanup
- new pretty-printed code can be compiled again (for some files)
R=r
OCL=16272
CL=16272
|
|
- temporary work-around for 6g bug
R=r
OCL=16052
CL=16052
|