Age | Commit message (Collapse) | Author | Files | Lines |
|
- fixed expression and statement printing
- missing: declarations, comments
R=r
OCL=17207
CL=17207
|
|
- 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
|
|
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
|
|
R=r
OCL=16869
CL=16869
|
|
R=r
OCL=16698
CL=16698
|
|
the parser accepts a bit more then it should)
R=r
OCL=16694
CL=16694
|
|
R=gri,r
OCL=16648
CL=16652
|
|
- fixed parsing of parameter lists (sigh)
R=r
DELTA=48 (22 added, 7 deleted, 19 changed)
OCL=16319
CL=16321
|
|
R=r
OCL=16274
CL=16274
|
|
- some scanner cleanup
- new pretty-printed code can be compiled again (for some files)
R=r
OCL=16272
CL=16272
|
|
- temporary work-around for 6g bug
R=r
OCL=16052
CL=16052
|
|
Added support for function literals, composite literals.
Bug fixes.
R=r
OCL=15911
CL=15911
|
|
- removed excessive ";"'s
- no ()'s around expressions where not needed
- parser.go now reproduced and parseable again
R=r
OCL=15881
CL=15881
|
|
R=r
OCL=15863
CL=15863
|
|
- adjusted the makefile to explicitly compile flag.go and fmt.go for gccgo
R=r
OCL=15822
CL=15822
|
|
- almost complete language reproduced
R=r
OCL=15801
CL=15801
|
|
- more AST nodes built and printed
R=r
OCL=15735
CL=15735
|
|
- parts of AST built and printed
- no formatting yet
R=r
OCL=15727
CL=15727
|
|
R=r
OCL=15693
CL=15695
|
|
R=r
OCL=15675
CL=15675
|
|
- fixed result parsing of function types
R=r
OCL=15585
CL=15585
|
|
R=r
OCL=15539
CL=15542
|
|
- removed tests that may have wrong Go code from Makefile
R=r
OCL=15532
CL=15532
|
|
R=r
OCL=15518
CL=15518
|
|
- added more test cases to Makefile
- fixed another parser issue (possibly a 6g bug - to be tracked down)
R=r
OCL=15516
CL=15516
|
|
(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
|
|
- 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
|