summaryrefslogtreecommitdiff
path: root/src/cmd/gc/lex.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-3/+28
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-1/+1
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-35/+168
2010-06-14gc: no more ...Russ Cox1-16/+26
various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
2010-06-12gc: less aggressive name binding, for better line numbers in errorsRuss Cox1-18/+18
Cleans up a few other corner cases too. R=ken2 CC=golang-dev http://codereview.appspot.com/1592045
2010-06-11gc: change -u to require imports to be marked safeRuss Cox1-0/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1597043
2010-06-09gc: more cleanupRuss Cox1-22/+68
* disallow surrogate pair runes. * diagnose impossible type assertions * eliminate another static buffer. * do not overflow lexbuf. * add -u flag to disable package unsafe. R=ken2 CC=golang-dev http://codereview.appspot.com/1619042
2010-06-08gc: new typechecking rulesRuss Cox1-4/+22
* Code for assignment, conversions now mirrors spec. * Changed some snprint -> smprint. * Renamed runtime functions to separate interface conversions from type assertions: convT2I, assertI2T, etc. * Correct checking of \U sequences. Fixes issue 840. Fixes issue 830. Fixes issue 778. R=ken2 CC=golang-dev http://codereview.appspot.com/1303042
2010-06-07gc: backslash newline is not a legal escape sequence in stringsRobert Griesemer1-4/+0
Fixes issue 827. R=ken2 CC=golang-dev, rsc http://codereview.appspot.com/1592041
2010-05-20gc: disallow · in Go programsRuss Cox1-1/+1
Fixes issue 793. R=ken2 CC=golang-dev http://codereview.appspot.com/1249043
2010-05-03gc: bug267Russ Cox1-0/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/1067042
2010-04-27gc: better windows detectionRuss Cox1-13/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/944043
2010-04-27gc: fix islocalname on windowsRuss Cox1-1/+22
Fixes issue 732. R=ken2 CC=golang-dev http://codereview.appspot.com/956050
2010-04-11gc: distinguish fatal compiler bug from error+exitRuss Cox1-11/+20
R=ken2 CC=golang-dev http://codereview.appspot.com/902044
2010-03-31gc: implement panic and recoverRuss Cox1-2/+9
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox1-0/+1
main semantic change is to enforce single argument to panic. runtime: change to 1-argument panic. use String method on argument if it has one. R=ken2, r CC=golang-dev http://codereview.appspot.com/812043
2010-03-29gc: flush warnings, if anyRuss Cox1-0/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/811042
2010-03-24depricate paniclnKen Thompson1-1/+0
R=rsc CC=golang-dev http://codereview.appspot.com/743041
2010-03-08gc: avoid fixed length buffer cleanbufDean Prichard1-2/+3
R=rsc CC=golang-dev http://codereview.appspot.com/302042 Committer: Russ Cox <rsc@golang.org>
2010-03-056g complex type usableKen Thompson1-0/+3
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-03-03gc: fix imported and not used message - show pathRuss Cox1-2/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/229046
2010-02-17new types complex, complex64 and complex128Ken Thompson1-0/+27
only front-end compiler work. best to do thin in 3 steps 1. frontend 2. backend 3. lib R=rsc CC=golang-dev http://codereview.appspot.com/214042
2010-02-16gc: disallow NUL byte, catch more invalid UTF-8, testRuss Cox1-30/+22
R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/209041
2010-02-16gc: test & fix handling of very long string constantsRuss Cox1-8/+13
R=ken2 CC=golang-dev http://codereview.appspot.com/207106
2010-02-08*l/*c: add -V flag to display version numberAndrew Gerrand1-0/+4
R=rsc CC=golang-dev http://codereview.appspot.com/204044
2010-01-28gc: tweak error messages, avoid internalization settings in bisonRuss Cox1-9/+13
R=r CC=golang-dev http://codereview.appspot.com/194129
2010-01-26gc: improved syntax errorsRuss Cox1-0/+84
* example-based syntax errors (go.errors) * enable bison's more specific errors and translate grammar token names into tokens like ++ * test cases R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/194085
2010-01-26gc: do not treat .6 different from .a anymoreRuss Cox1-13/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/195050
2010-01-25eliminate package global name spaceRuss Cox1-3/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/194071
2010-01-24gc: record full package paths in runtime type dataRuss Cox1-0/+3
detect compilation of special package runtime with compiler flag instead of package name. R=ken2 CC=golang-dev http://codereview.appspot.com/193080
2010-01-24gc: cut some dead code, fix 6g -S outputRuss Cox1-1/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox1-31/+45
5g/6g/8g: add import statements to export metadata, mapping package path to package name. recognize "" as the path of the package in export metadata. use "" as the path of the package in object symbol names. 5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package. 5l/6l/8l: rewrite "" in symbol names as object files are read. gotest: handle new symbol names. gopack: handle new import lines in export metadata. Collectively, these changes eliminate the assumption of a global name space in the object file formats. Higher level pieces such as reflect and the computation of type hashes still depend on the assumption; we're not done yet. R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/186263 Committer: Russ Cox <rsc@golang.org>
2010-01-18build: move GOOS, GOARCH, GOROOT lookup into central library.Russ Cox1-2/+2
bake default values in during build. R=r CC=golang-dev http://codereview.appspot.com/186173
2010-01-18gc: more precise handling of import .Russ Cox1-3/+3
Fixes issue 455. R=ken2 CC=golang-dev http://codereview.appspot.com/186212
2010-01-13ignore $GOARCH inside the compiler and linker.Rob Pike1-1/+1
by definition, they know what they are building for. makes it easier to switch architectures when testing. % 6g x.go % 6l x.6 % 6.out "Wed Jan 13 10:57:46 EST 2010" % 8g x.go % 8l x.8 % 8.out "Wed Jan 13 10:57:46 EST 2010" % echo $GOARCH % R=rsc CC=golang-dev http://codereview.appspot.com/186116
2010-01-07gc: bug219, bug239, bug240Russ Cox1-6/+22
Fixes issue 475. R=ken2 CC=golang-dev http://codereview.appspot.com/183157
2009-12-11gc: semicolonsRuss Cox1-81/+58
Fixes issue 89. Fixes issue 92. Fixes issue 118. Fixes issue 182. Fixes issue 328. Fixes issue 340. R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/172049
2009-12-02gc: make 'invalid rune in string' a little less crypticRuss Cox1-1/+3
Fixes issue 371. R=ken2 http://codereview.appspot.com/164091
2009-11-17install copy predefinedKen Thompson1-0/+1
did not test 386, but should work shouldnt matter if copy is not used R=rsc http://codereview.appspot.com/156055
2009-11-11gc: increase maximum path size in getwd from 100 to 1000.Russ Cox1-2/+2
Fixes issue 31. To try the fix before the next release: hg pull -u R=r1, r http://codereview.appspot.com/154058
2009-11-03document the gc go compilers.Rob Pike1-1/+1
fix the usage message. R=rsc CC=go-dev http://go/go-review/1016033
2009-10-19bug169Russ Cox1-2/+4
R=ken OCL=35899 CL=35899
2009-10-19bug190.Russ Cox1-1/+0
also eliminate float80 dregs R=ken OCL=35894 CL=35896
2009-10-15rename sys functions to runtime,Russ Cox1-2/+2
because they are in package runtime. another step to enforcing package boundaries. R=r DELTA=732 (114 added, 93 deleted, 525 changed) OCL=35811 CL=35824
2009-10-12sort errors by line numberRuss Cox1-7/+4
turn off testdclstack and "not used" errors when there are syntax errors. BUG=2181825 R=ken OCL=35606 CL=35608
2009-10-07better handling of mistaken top-level variableRuss Cox1-17/+7
references during the parsing of :=. the base problem is that when reading a,b,c,d the parser makes those refer to existing variables, which might create a few stub top-level ones for undefined names, but then if a := is the next token, we need to undo those stubs. this was causing problems in multifile packages in which one file used a := variable named rpc and the other imported a package named rpc. R=ken OCL=35446 CL=35446
2009-09-21ideal bools and related fixesRuss Cox1-9/+11
R=ken OCL=34859 CL=34865
2009-09-17check for unused importsRuss Cox1-13/+22
R=ken OCL=34732 CL=34756
2009-09-09defining package block names must overrideRuss Cox1-58/+75
universe block names. BUG=2097244 R=ken OCL=34295 CL=34473
2009-09-09update type switch to match spec.Russ Cox1-0/+1
R=ken OCL=34471 CL=34471