summaryrefslogtreecommitdiff
path: root/src/pkg/go/parser
AgeCommit message (Collapse)AuthorFilesLines
2013-03-23Imported Upstream version 1.1~hg20130323upstream/1.1_hg20130323Michael Stapelberg3-16/+44
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg6-118/+279
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý2-23/+214
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý9-424/+932
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý4-0/+2517
2011-09-13Imported Upstream version 60Ondřej Surý4-2591/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-1/+1
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý2-28/+27
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-4/+4
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý3-198/+508
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý3-49/+83
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý2-31/+63
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý4-551/+337
2010-06-08go/parser: correct position of empty statement ';'Robert Griesemer1-3/+2
(caused certain files to not be idempotent under gofmt) - corrected golden files for go/printer - slightly simplified some code in nodes.go (no impact on formatting) - these changes have no impact on gofmt output of .go files under src, misc fallthrough statement considered harmful! R=rsc CC=golang-dev http://codereview.appspot.com/1593042
2010-05-21go/printer, gofmt: fix printing of labels,Robert Griesemer1-1/+2
apply gofmt to src, misc Fixes issue 752. R=rsc CC=golang-dev http://codereview.appspot.com/1240044 Committer: Robert Griesemer <gri@golang.org>
2010-04-27go/parser: don't require parens around composite literals inside a composite ↵Robert Griesemer2-0/+5
literal within an if, for, or switch control clause R=rsc CC=golang-dev http://codereview.appspot.com/943046
2010-04-09rename os.Dir to os.FileInfoRob Pike2-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/902042
2010-03-30simplify various code using new map index ruleRuss Cox1-2/+2
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox1-2/+1
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-16gofmt: more consistent formatting of const/var declsRobert Griesemer1-3/+3
- gofmt -w src misc - only manually modified file: src/pkg/go/printer/nodes.go R=rsc CC=golang-dev, r http://codereview.appspot.com/606041
2010-02-26go/parser cleanup: remove some state by writing more functional codeRobert Griesemer1-16/+17
R=rsc CC=golang-dev http://codereview.appspot.com/223071
2010-02-25strings: delete Runes, BytesRuss Cox1-2/+1
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-24go/scanner: support for complex (imaginary) constantsRobert Griesemer1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/223044
2010-02-24go/ast: streamline representation of field listsRobert Griesemer1-23/+23
- always include position information about opening/closing parens/braces - replace uses of []*ast.Field with *ast.FieldList Fixes issue 473. R=rsc CC=golang-dev http://codereview.appspot.com/223043
2010-02-19go/ast: use a slice instead of a linked list for the list of commentsRobert Griesemer1-8/+10
(this will simplify some further changes) removed several TODOs R=rsc CC=golang-dev http://codereview.appspot.com/216059
2010-02-19- removed exp/parser (support for old semicolon syntax)Robert Griesemer1-7/+4
- go/ast: removed StringList (not needed anymore) - go/ast: changed import path and field list tag to a single string - updated all dependencies R=rsc CC=golang-dev http://codereview.appspot.com/217056
2010-02-16remove assumption that all files belonging to a package are in the same ↵Robert Griesemer1-16/+38
directory: - adjust ast.Package node and doc.PackageDoc correspondingly - introduce parser.ParseFiles R=rsc CC=golang-dev http://codereview.appspot.com/207087
2010-02-02Change type of Printf's args to ... interface{}Rob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/197043
2010-01-28support for ...T parameters (go/* packages)Robert Griesemer3-9/+11
R=rsc CC=golang-dev http://codereview.appspot.com/194126
2010-01-27go/parser: disable scoping code alwaysRuss Cox1-1/+4
Seems to be enabled spuriously during godoc (can't see why), producing errors like: parser.parseDir: src/pkg/http/server.go:159:16: 'Write' declared already at src/pkg/http/request.go:140:21 (and 4 more errors) R=r CC=golang-dev http://codereview.appspot.com/194119
2010-01-27More steps towards tracking of identifier scopes.Robert Griesemer3-43/+75
- provide scope to parse functions; if non-nil, parser uses the scope to declare and lookup identifiers - resolve forward references where possible R=rsc CC=golang-dev http://codereview.appspot.com/194098
2010-01-26Allow func() func().Robert Griesemer2-2/+2
Update gofmt test script. R=rsc CC=golang-dev http://codereview.appspot.com/195044
2010-01-26Bug in go/parser when coverting identifier lists.Robert Griesemer2-1/+2
Fixes issue 567. R=rsc CC=golang-dev http://codereview.appspot.com/195041
2010-01-25steps towards a simplified parser interfaceRobert Griesemer2-12/+30
minor cleanups (which I did at home before but missed this morning at work) R=rsc CC=golang-dev http://codereview.appspot.com/193095
2010-01-25A <- token in an expression may introduce a channel type.Robert Griesemer2-2/+17
Fixes issue 530. R=rsc CC=golang-dev http://codereview.appspot.com/193091
2010-01-25Scoping snapshot.Robert Griesemer1-73/+133
- separate parsing from declaration - setup of correct scopes R=rsc CC=golang-dev http://codereview.appspot.com/189098
2010-01-15Urgent parser/gofmt fix.Robert Griesemer1-1/+1
Wrong position information for identifier could lead to destructive reformatting of source via hg gofmt. R=rsc CC=golang-dev http://codereview.appspot.com/189100
2010-01-15 Steps towards tracking scopes for identifiers.Robert Griesemer2-49/+85
- Identifiers refer now to the language entity (Object) that they denote. At the moment this is at best an approximation. - Initial data structures for language entities (Objects) and expression types (Type) independent of the actual type notations. - Initial support for declaring and looking up identifiers. - Updated various dependent files and added support functions. - Extensively tested to avoid breakage. This is an AST change. R=rsc CC=golang-dev, rog http://codereview.appspot.com/189080
2010-01-04Simplified parser interface.Robert Griesemer2-50/+27
R=rsc, r CC=golang-dev, rog http://codereview.appspot.com/183116
2009-12-28simplify some code that is using vectorsRobert Griesemer1-37/+37
R=agl, agl1 CC=golang-dev http://codereview.appspot.com/181080
2009-12-18removed semantic check from parsersRobert Griesemer1-3/+0
R=rsc CC=golang-dev http://codereview.appspot.com/179099
2009-12-16Don't ignore flags controlling the amount of source code parsedRobert Griesemer1-5/+5
in parser's ParsePkgFile and ParsePackage functions. R=rsc CC=golang-dev, rog http://codereview.appspot.com/180070
2009-12-151) Change default gofmt default settings forRobert Griesemer3-575/+575
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-12-11parser changed to reflect new semicolon rulesRobert Griesemer2-229/+167
R=rsc http://codereview.appspot.com/175046 Committer: Robert Griesemer <gri@golang.org>
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-1/+1
R=rsc http://codereview.appspot.com/172041
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike1-2/+3
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-29Correct expression level for argument lists.Robert Griesemer2-0/+3
Fixes issue 352. R=rsc http://codereview.appspot.com/161073
2009-11-24Handle presence of illegal semicolon after package clause better.Robert Griesemer1-0/+8
R=r, r1 http://codereview.appspot.com/157167
2009-11-24Change to container/vector interface:Robert Griesemer1-19/+18
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>