summaryrefslogtreecommitdiff
path: root/usr/gri/pretty
AgeCommit message (Collapse)AuthorFilesLines
2008-10-15snapshotRobert Griesemer5-207/+155
- fixed expression and statement printing - missing: declarations, comments R=r OCL=17207 CL=17207
2008-10-14- snapshot of pretty printer workRobert Griesemer6-1363/+897
- accepts all Go code (use -s flag) - complete rewrite of AST, AST building, and printing (as a result much more compact) - printing severely screwed up at the moment, but should be fully working in 1 more day R=r DELTA=2118 (514 added, 980 deleted, 624 changed) OCL=17161 CL=17161
2008-10-10- implemented heuristic for composite literals starting with a type name:Robert Griesemer3-144/+116
if in a if, for, or switch header, must be parenthesized - implemented string concatenation - simplified a lot of code - added many more tests: can now parse all *.go files I got my hands on - printing output currently broken in some cases, use with -s (silent) option R=r OCL=16932 CL=16934
2008-10-09- more cleanups (simpler code for optional semi's, bug fixes)Robert Griesemer1-94/+73
R=r OCL=16869 CL=16869
2008-10-07- don't allow empty decl lists (e.g. const ())Robert Griesemer1-7/+5
R=r OCL=16698 CL=16698
2008-10-07- accept new semicolon syntax (at the moment,Robert Griesemer1-39/+50
the parser accepts a bit more then it should) R=r OCL=16694 CL=16694
2008-10-07remove uses of *T as an implicit forward declaration of TRuss Cox1-3/+46
R=gri,r OCL=16648 CL=16652
2008-10-01- fixed Makefile, added more testsRobert Griesemer2-27/+42
- fixed parsing of parameter lists (sigh) R=r DELTA=48 (22 added, 7 deleted, 19 changed) OCL=16319 CL=16321
2008-09-30more fine-tuning of ;'sRobert Griesemer1-2/+3
R=r OCL=16274 CL=16274
2008-09-30- fixed semicolon handling in pretty printerRobert Griesemer3-213/+209
- some scanner cleanup - new pretty-printed code can be compiled again (for some files) R=r OCL=16272 CL=16272
2008-09-27- allow for embeded types in fields, and parameter lists w/o parameter namesRobert Griesemer3-13/+40
- temporary work-around for 6g bug R=r OCL=16052 CL=16052
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 Griesemer2-3/+1
- 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 Griesemer2-3/+5
- 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