summaryrefslogtreecommitdiff
path: root/src/lib/go/parser.go
AgeCommit message (Collapse)AuthorFilesLines
2009-05-05new dir structure for lib/goRobert Griesemer1-1965/+0
R=r DELTA=9298 (4760 added, 4536 deleted, 2 changed) OCL=28317 CL=28317
2009-04-24- fixed a couple of potential end-less loopsRobert Griesemer1-10/+11
(no progress in presence of syntax errors) - end parsing early if source doesn't start proper package clause R=iant DELTA=18 (7 added, 6 deleted, 5 changed) OCL=27840 CL=27842
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox1-19/+19
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-02require ";" separator after function literalsRobert Griesemer1-0/+1
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=27057 CL=27059
2009-04-02- Ident node now takes a string Value instead of a []bytesRobert Griesemer1-5/+5
(this removes a lot of string() conversions down the road) - a few minor adjustments R=rsc DELTA=11 (0 added, 0 deleted, 11 changed) OCL=27029 CL=27038
2009-04-02Some AST tuning:Robert Griesemer1-45/+39
- have explicit XSpec nodes for declarations - have a general GenDecl node instead of DeclList R=rsc DELTA=164 (52 added, 52 deleted, 60 changed) OCL=27005 CL=27027
2009-03-311) Move parser.go into src/lib/goRobert Griesemer1-0/+1969
- minor adjustments as suggested by rsc 2) Added parser_test fragment 3) Renamed some types in AST.go per rsc request R=rsc DELTA=2053 (2027 added, 0 deleted, 26 changed) OCL=26963 CL=26971