Age | Commit message (Collapse) | Author | Files | Lines |
|
R=r
OCL=21384
CL=21384
|
|
Preparations to track identifiers and declarations so that we can
generate good html links as pretty printer output:
- brought over old code and adjusted it
- initial hookups, nothing really running yet
R=r
OCL=21383
CL=21383
|
|
R=r
OCL=21030
CL=21030
|
|
- fixed html tag generation
- simplified html escaping machinery
(not 100% correct for strings yet)
- can now produce the first mostly correct formatted html pages from source
with (fake) links: e.g. pretty -html srcfile.go > srcfile.html
R=r
OCL=20915
CL=20915
|
|
- fix pretty printer to work with new tabwriter interface
R=r
OCL=20854
CL=20854
|
|
- first cut at html writer (will do html escaping, html tag production)
- first cut at generating basic html output via pretty
- some cleanups
R=r
OCL=20550
CL=20550
|
|
- rewrote declaration printing - was unreadable before
- no semicolons after closing "}" for types
R=r
OCL=20379
CL=20379
|
|
- fixed printing of empty structs/interfaces
- enable two more tests
R=r
OCL=20296
CL=20296
|
|
- by default consider extra newlines in src for better formatting
- additional flags for control (-newlines, -maxnewlines, -optsemicolons)
- don't print ()'s around single anonymous result types
Status: Comparing the output of pretty with the input for larger files
shows mostly whitespace/formatting differences, which is what is desired.
TODO:
- Handling of overlong lines
- some esoteric cases which look funny
R=r
OCL=20293
CL=20293
|
|
default. Fix PRETTY_OBJS to include compilation.o rather than
compilation.go.
R=gri
DELTA=10 (0 added, 8 deleted, 2 changed)
OCL=20248
CL=20257
|
|
- changed tab width to 8 chars by default to make test run properly
- excluded 4 files that are not idempotently printed
- fixed a couple of incorrect file position recordings in parser
- fine-tuned layout engine
- white-space formatting reasonable, but not perfect
- no handling of overlong lines
R=r
To use with smaller tabs: pretty -tabwidth=4 file.go
To use with blanks instead of tabs: pretty -usetabs=0 file.go
OCL=20184
CL=20184
|
|
- comment printing still disabled by default because idempotency test fails
- whitespace control better but not perfect yet
- snapshot before making some heuristics changes
R=r
OCL=20151
CL=20151
|
|
for end of declarations, blocks, parameter lists, etc.
- use extra src positions to more accurately print comments
- fine-tuned low-level printing routine for comments
- added better debugging support
Status:
- comments now appear at the right place (inbetween the right tokens)
- newline control needs improvement (not very hard)
- comment printing disabled for now because pretty is not idempotent
with it; to enable: -comments
R=r
OCL=20079
CL=20079
|
|
way to integrate comments into the generated output
- various simplificatins and cleanups throughout
R=r
OCL=20062
CL=20062
|
|
- use more of the existing library code
R=r
OCL=19957
CL=19959
|
|
- implemented right-to-left alignment (numerical results)
- better comments and error handling
- added more tests
- updated dependent files
R=r
DELTA=232 (175 added, 11 deleted, 46 changed)
OCL=19761
CL=19780
|
|
- added preliminary tests (more to do)
- renamed type from TabWriter -> Writer
- adjusted my code where necessary
R=r
DELTA=825 (474 added, 346 deleted, 5 changed)
OCL=19744
CL=19753
|
|
- documentation, cleanups
- more options
R=r
OCL=19736
CL=19736
|
|
R=r
OCL=19648
CL=19651
|
|
- exclude a test due to syntax errors
R=r
OCL=19563
CL=19565
|
|
R=r
OCL=19558
CL=19558
|
|
(to be moved into std lib eventually)
- rewrote tabwriter to use byte buffers instead of strings
(byte buffers to be moved into stdlib eventually)
- support for recent syntax changes
- no space printed after function name and before function parameters
- comments still disabled due to a known bug
R=r
OCL=19430
CL=19430
|
|
- related cleanups
R=r
OCL=19227
CL=19227
|
|
- implemented elastic tabstops algorithm, now correct and documented
- first cut at printing comments (use -comments flag, disabled for now)
- struct field types are now aligned (using elastic tab stops)
- needs more fine-tuning
* fixed a bug in test script
* added quick smoke test to makefile and invoke it in run.bash
instead of the full test
R=r
OCL=19220
CL=19220
|
|
- new code enabled, but no comments printed yet (so the effect
of the elastic tabs is not seen yet)
TBR=r
DELTA=200 (93 added, 69 deleted, 38 changed)
OCL=18951
CL=18951
|
|
printing output
- not yet enabled
R=r
OCL=18842
CL=18842
|
|
- re-enabled bug118.go for pretty
R=r
OCL=18604
CL=18604
|
|
R=r
OCL=18602
CL=18602
|
|
R=r
OCL=18475
CL=18475
|
|
R=r
DELTA=3501 (1752 added, 1749 deleted, 0 changed)
OCL=18460
CL=18471
|
|
- removed trailing tabs
R=r
OCL=18458
CL=18458
|
|
- completed rational support
- better documentation
- more tests
- cleanups
R=r
OCL=18438
CL=18438
|
|
(operates on 30bit values at a time instead of 20bit values)
- refactored and cleaned up lots of code
- more tests
- close to check-in as complete library
R=r
OCL=18326
CL=18326
|
|
- more rational numbers stuff
- more tests
R=r
OCL=18295
CL=18295
|
|
R=r
OCL=18264
CL=18264
|
|
R=r
OCL=18235
CL=18237
|
|
- more tests
- some global renames
R=r
OCL=18219
CL=18219
|
|
- removed shift work-arounds (6g code appears to work now)
- made similar routines more regular in structure
- more tests
R=r
OCL=18102
CL=18102
|
|
- fixed code so it works with any base between 9 and 64
- work-around for 6g shift problems in various places
R=r
OCL=18080
CL=18080
|
|
R=r
OCL=17987
CL=17987
|
|
- string conversion in different bases
- tracked down a 6g bug, use work-around for now
R=r
OCL=17981
CL=17981
|
|
- integer string conversion
R=r
OCL=17923
CL=17923
|
|
now using up-to-date language features
- moved old code away from pkg (defunct anyway because of language changes)
R=r
OCL=17916
CL=17916
|
|
file
(e.g.: pretty -d pretty.go will print the Makefile dep. rules of the involved
Go files that are not part of the installed library)
- minor fix in pretty printer (tested against ken's test files)
R=r
OCL=17872
CL=17872
|
|
put explicit ./ on some runtime tests
R=r
OCL=17839
CL=17839
|
|
R=r
OCL=17813
CL=17813
|
|
easily (for instance import dependency extraction)
- support for new "..." syntax
- minor cleanup
R=r
OCL=17811
CL=17811
|
|
- fixed an issue with select
- added all bugs and fixedbugs tests that are syntactically correct to the test suite
- minor cosmetic changes
R=r
OCL=17759
CL=17759
|
|
in general
R=rsc
DELTA=2 (1 added, 0 deleted, 1 changed)
OCL=17624
CL=17624
|
|
R=rsc
DELTA=1 (0 added, 1 deleted, 0 changed)
OCL=17514
CL=17514
|