summaryrefslogtreecommitdiff
path: root/src/cmd/gc/lex.c
AgeCommit message (Collapse)AuthorFilesLines
2008-12-19[] and struct in interfaces.Russ Cox1-2/+0
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
2008-12-08foundation for import unsafeKen Thompson1-5/+7
R=r OCL=20794 CL=20794
2008-12-03import/export of exact mp floating constantsKen Thompson1-0/+18
new syntax for exact mp floating constants decimal_int ( "p" | "P" ) [ "+" | "-" ] decimal_int the value is decimal1 * 2^decimal2 R=r OCL=20357 CL=20357
2008-12-01multi precision floating pointKen Thompson1-1/+2
R=r OCL=20185 CL=20185
2008-11-19look for .6 before .a; accept archives with 0 length __.SYMDEFRuss Cox1-9/+14
TBR=r OCL=19612 CL=19612
2008-11-18use correct lineno in nod even if yacc has looked ahead.Russ Cox1-0/+2
makes lineno correct for statements without semicolons. R=ken OCL=19454 CL=19454
2008-10-29the end of life as we know itKen Thompson1-28/+80
int is new type R=r OCL=18023 CL=18023
2008-10-216g:Russ Cox1-6/+4
* print int as int, not P.int * write type info for non-exported types in its own new section. ar: skip over rest of line after $$ R=ken OCL=17568 CL=17568
2008-10-17do not set t->recur on basic types.Russ Cox1-1/+0
the comment talked about printing, but now t->recur is only used for typehash. in typehash it is important to compute different hashes for the different basic types. add test that makes sure an interface { X() int8 } cannot be used as interface { X() int64 } R=ken OCL=17396 CL=17396
2008-10-16diagnose various conversion problemsRuss Cox1-0/+1
R=ken OCL=17320 CL=17320
2008-10-14interface equalityKen Thompson1-0/+1
R=r OCL=17116 CL=17118
2008-10-03silence gcc warningsRuss Cox1-1/+0
R=ken OCL=16449 CL=16466
2008-10-03new import/export formatRuss Cox1-6/+6
package flag export type flag.Flag struct { name flag.string; usage flag.string; \ value flag.Value; next *flag.Flag } type flag.string string type flag.Value interface { AsBool () (? *flag.BoolValue); \ AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \ IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \ Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) } type flag.BoolValue struct { val flag.bool; p *flag.bool } type flag.IntValue struct { val flag.int64; p *flag.int64 } type flag.StringValue struct { val flag.string; p *flag.string } type flag.bool bool func (e *flag.StringValue) AsBool () (? *flag.BoolValue) func (e *flag.StringValue) AsInt () (? *flag.IntValue) ... the \ continuations are for this message, not real. changed delimiter for import from (( )) to $$ $$. replaced mksys.bash with mksys.c changed sys.go to use leading export, fake package name is now SYS not foop don't always require ; on forward func decls R=ken,r DELTA=1827 (446 added, 1083 deleted, 298 changed) OCL=16433 CL=16463
2008-10-02names now println/paniclnKen Thompson1-2/+2
bug fix in named-return R=r OCL=16377 CL=16377
2008-10-02added printn and panicnKen Thompson1-0/+2
prints that insert spaces and new line R=r OCL=16370 CL=16370
2008-09-16new grammar:Rob Pike1-5/+1
binary <- is send unary <- is recv -< is gone case a := <-ch: works in select case a = <-ch: works in select support for new cases is not yet in the compiler but all non-select code works second CL will update affected go source R=ken OCL=15414 CL=15414
2008-08-27arraysKen Thompson1-0/+1
R=r OCL=14603 CL=14603
2008-08-12i2s and i2iKen Thompson1-8/+9
R=r OCL=14140 CL=14140
2008-08-12fixed bugs in const/caseKen Thompson1-1/+1
R=r DELTA=138 (75 added, 12 deleted, 51 changed) OCL=14129 CL=14131
2008-08-11export large constantsKen Thompson1-0/+1
R=r DELTA=37 (31 added, 4 deleted, 2 changed) OCL=14089 CL=14089
2008-08-09mp fixed arithKen Thompson1-2/+2
R=r DELTA=149 (80 added, 62 deleted, 7 changed) OCL=14029 CL=14029
2008-08-08mp constantsKen Thompson1-40/+43
R=r DELTA=381 (142 added, 26 deleted, 213 changed) OCL=14011 CL=14016
2008-08-03make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.Russ Cox1-9/+9
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
2008-07-27random bug fixesKen Thompson1-0/+3
R=r DELTA=18 (6 added, 1 deleted, 11 changed) OCL=13504 CL=13504
2008-07-20start of selectKen Thompson1-10/+10
random bugs fixed SVN=128149
2008-07-15new chan syntaxKen Thompson1-0/+8
SVN=127437
2008-07-09enable autolibRob Pike1-6/+83
handle archives with __.PKGDEF elements (although we can't create them yet) introduce a pkg directory search the pkg directory for packages during compilation SVN=126574
2008-07-08unique import/export namesKen Thompson1-0/+16
more on go statement SVN=126421
2008-07-05random little bugsKen Thompson1-1/+2
SVN=126049
2008-07-05output args declaredKen Thompson1-9/+17
arguments in first block for diagnostics thomo return better syntax error recovery SVN=126045
2008-06-28more line numbersKen Thompson1-2/+4
SVN=125265
2008-06-25autolib (#pragma lib)Ken Thompson1-1/+3
added to 6g to autoload the included import files. SVN=124759
2008-06-21redeclarations of variables in the same block.Ken Thompson1-4/+6
half-step toward multivalued map indexing SVN=124019
2008-06-15now checks for lvalue/rvalue context ofKen Thompson1-1/+7
expressions. start of generics for calling builtin functions start of map type 'any' demoted from reserved word to type SVN=122808
2008-06-13plan9 line numbers and line tableKen Thompson1-20/+32
SVN=122793
2008-06-12better import/exportKen Thompson1-0/+1
SVN=122584
2008-06-11import/exportKen Thompson1-1/+3
SVN=122309
2008-06-09new elf headerKen Thompson1-1/+1
SVN=121737
2008-06-08more nihanKen Thompson1-10/+15
SVN=121622
2008-06-08nihonKen Thompson1-14/+10
SVN=121620
2008-06-06cafebabeKen Thompson1-30/+34
SVN=121574
2008-06-06'\Ucafebabe'Ken Thompson1-5/+5
SVN=121562
2008-06-06fixed \\ secape in stringsKen Thompson1-0/+1
SVN=121553
2008-06-05goos garchKen Thompson1-2/+13
SVN=121367
2008-06-04loaded problem getting main from a libraryKen Thompson1-1/+1
SVN=121175
2008-06-04Add compiler source to new directory structureRob Pike1-0/+1088
SVN=121164