summaryrefslogtreecommitdiff
path: root/usr
AgeCommit message (Collapse)AuthorFilesLines
2008-09-25Snapshot.Robert Griesemer4-57/+128
Added support for function literals, composite literals. Bug fixes. R=r OCL=15911 CL=15911
2008-09-25- more missing constructs addedRobert Griesemer5-103/+217
- removed excessive ";"'s - no ()'s around expressions where not needed - parser.go now reproduced and parseable again R=r OCL=15881 CL=15881
2008-09-25snapshot: more pretty printer stuffRobert Griesemer3-87/+125
R=r OCL=15863 CL=15863
2008-09-24- added names to result signatures to make it compile with gccgoRobert Griesemer2-7/+14
- adjusted the makefile to explicitly compile flag.go and fmt.go for gccgo R=r OCL=15822 CL=15822
2008-09-24- more ast buidling and printingRobert Griesemer3-187/+517
- almost complete language reproduced R=r OCL=15801 CL=15801
2008-09-23- added initial formatting: indentationRobert Griesemer3-63/+165
- more AST nodes built and printed R=r OCL=15735 CL=15735
2008-09-23- snapshot of pretty printer statusRobert Griesemer4-193/+495
- parts of AST built and printed - no formatting yet R=r OCL=15727 CL=15727
2008-09-23- added gccgo makefileRobert Griesemer2-1/+57
R=r OCL=15693 CL=15695
2008-09-22- first cut at building and printing ASTRobert Griesemer5-90/+264
R=r OCL=15675 CL=15675
2008-09-19- heuristics for parsing composite literals in some casesRobert Griesemer1-12/+33
- fixed result parsing of function types R=r OCL=15585 CL=15585
2008-09-19- simplified parser by better factoringRobert Griesemer2-65/+52
R=r OCL=15539 CL=15542
2008-09-19- fix for out-of-bounds error found by rscRobert Griesemer3-4/+2
- removed tests that may have wrong Go code from Makefile R=r OCL=15532 CL=15532
2008-09-18- fixed another parser bug, now correctly parse more testsRobert Griesemer1-1/+3
R=r OCL=15518 CL=15518
2008-09-18- fixed old test cases with wrong syntaxRobert Griesemer4-15/+7
- added more test cases to Makefile - fixed another parser issue (possibly a 6g bug - to be tracked down) R=r OCL=15516 CL=15516
2008-09-18- fixed bug which prevented parser.go from compilingRobert Griesemer4-26/+42
(typo in ptr decl lead to an unresolved forward declaration) - fixed parser bugs - fixed Makefile - now successfully parses most code Issues: - composite literals (cannot be identified easily from syntax alone) - new(T, ...) (cannot be identified easily from syntax alone since new is not a keyword and thus could be a different function then the allocation function at which point "new((x + y))" is legal, but the inner "(x" looks like the beginning of a function type) R=r OCL=15515 CL=15515
2008-09-18First cut at a Go pretty printer:Robert Griesemer8-0/+2379
- code scavenged from Go-in-Go front-end (will merge back) - using "symbol-table" free parsing to build AST - no printing yet R=r OCL=15504 CL=15504
2008-09-17- updated printing of chan typesRobert Griesemer1-5/+3
R=r OCL=15448 CL=15448
2008-09-17- changed my scanner/parser to accept new channel syntaxRobert Griesemer3-48/+30
R=r OCL=15439 CL=15439
2008-09-12- updated code to work again with latest 6g versionRobert Griesemer1-5/+5
R=r OCL=15235 CL=15235
2008-09-11- fixed missing return issuesRobert Griesemer2-2/+9
R=r OCL=15168 CL=15168
2008-09-08- adjust my code and tests to new function syntaxRobert Griesemer4-23/+23
R=r OCL=14939 CL=14941
2008-09-02- adjusted my submitted code to work with latest compiler changesRobert Griesemer2-3/+3
R=r OCL=14734 CL=14734
2008-08-11- changed go-in-go parser to require ()'s for panic and printRobert Griesemer13-182/+166
- adjusted much of the existing go code - missing: tests R=r DELTA=229 (1 added, 17 deleted, 211 changed) OCL=14103 CL=14103
2008-08-11- allow reserved words as field and method namesRobert Griesemer7-48/+46
R=r OCL=14102 CL=14102
2008-08-11- experiments with forward-declaring types of non-imported packagesRobert Griesemer9-133/+162
- adjusted switch syntax (no repeated case: case: anymore) - enabled some constant expressions that work now R=r OCL=14098 CL=14098
2008-08-11- more steps towards automatic recursive compilation of dependenciesRobert Griesemer14-296/+431
- make forward declarations of types match 6g - better factoring R=r OCL=14059 CL=14059
2008-08-07first primitive cut at resolving missing imports automatically:Robert Griesemer8-69/+207
if an import file is missing, the corresponding source is compiled automatically, if found R=r OCL=13990 CL=13990
2008-08-06- implement scanner token stream via channelRobert Griesemer6-7/+67
- change test_scanner to scan using both methods - add -pscan flag to Go front-end to choose between conventional synchronous or parallel asynchronous scanning R=r OCL=13937 CL=13937
2008-08-06snapshot of today's changes - more semantic testsRobert Griesemer4-51/+151
R=r OCL=13932 CL=13932
2008-08-05- added more semantic checks - more to comeRobert Griesemer7-112/+362
- distinguish float/int literals syntactically - fixed a tracing bug R=r OCL=13906 CL=13906
2008-08-05- fixed another export bugRobert Griesemer8-115/+186
- more self-verification code R=r OCL=13894 CL=13894
2008-08-04- switch to new export syntaxRobert Griesemer15-116/+81
- deprecate old syntax in this front-end (use -6g for compatibility) R=r OCL=13831 CL=13833
2008-08-04- import/export cleanup: added comments, removed dead code, re-org structureRobert Griesemer4-172/+163
R=r OCL=13816 CL=13816
2008-08-04- more import/export stuffRobert Griesemer10-113/+74
- use new export syntax R=r OCL=13807 CL=13807
2008-08-01- simplified handling of primary types (types w/ names which mustRobert Griesemer4-60/+67
be canonicalized upon import) - missed some exports R=r OCL=13733 CL=13733
2008-08-01more import/export stuff:Robert Griesemer5-53/+47
- no need to import/export predeclared types - fix for receiver types - cleanups - added tests to Makefile R=r OCL=13728 CL=13730
2008-08-01- added import/export test casesRobert Griesemer4-0/+42
R=r OCL=13723 CL=13723
2008-07-31fixed bug in FixExt routineRobert Griesemer1-1/+1
R=r OCL=13695 CL=13695
2008-07-31- backward link from objs to containing scopeRobert Griesemer7-71/+150
(first step towards cleaner package handling) - check that map, function, and channel vars are pointers R=r OCL=13690 CL=13690
2008-07-31- fixed a bug w/ exports (wrong package info)Robert Griesemer9-18/+52
- keep track of type alias (type T1 T0) so we can print the proper type name R=r OCL=13688 CL=13688
2008-07-30- added missing fileRobert Griesemer1-0/+114
R=r OCL=13681 CL=13681
2008-07-30- fixed import bug (import "...")Robert Griesemer9-105/+156
- better debugging support - removed dead code R=r OCL=13680 CL=13680
2008-07-30various fixes:Robert Griesemer10-130/+151
- missing return in import code - proper propagation of flags to various components - better error message when source position is missing - cleanups R=r OCL=13676 CL=13676
2008-07-30- addded interface pretty printerRobert Griesemer4-26/+299
R=r OCL=13646 CL=13646
2008-07-29- import and export code, bug fixesRobert Griesemer8-114/+362
- almost back to where I was in C++, but now all in Go R=r OCL=13627 CL=13627
2008-07-29- handling of pointer forward declsRobert Griesemer3-78/+101
- some comments added to bug cases - added notes R=r OCL=13543 CL=13543
2008-07-25Experiments with "export":Robert Griesemer2-26/+42
Allow "export" keyword in front of a declaration. Semantics: export *top-level* identifiers declared (but not the fields of a struct type for instance). R=r OCL=13464 CL=13464
2008-07-25- more work on SimpleStat productionRobert Griesemer2-47/+92
R=r OCL=13461 CL=13461
2008-07-24- fixed several parser issuesRobert Griesemer3-72/+185
R=r OCL=13441 CL=13441
2008-07-23- parsing support for composite literalsRobert Griesemer1-5/+81
R=r OCL=13394 CL=13394