summaryrefslogtreecommitdiff
path: root/usr/gri
AgeCommit message (Collapse)AuthorFilesLines
2008-12-16- added missing fileRobert Griesemer1-0/+100
R=r OCL=21384 CL=21384
2008-12-16Snapshot.Robert Griesemer6-2/+624
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
2008-12-11- support for range clausesRobert Griesemer3-11/+93
R=r OCL=21030 CL=21030
2008-12-10Snapshot:Robert Griesemer4-97/+43
- 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
2008-12-09- snapshot if current stateRobert Griesemer3-27/+62
- fix pretty printer to work with new tabwriter interface R=r OCL=20854 CL=20854
2008-12-04- adjusted const decl grammar to reflect spec changesRobert Griesemer5-28/+107
- 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
2008-12-03- fixed a bug with import printing (missing separator between alias and string)Robert Griesemer2-37/+62
- rewrote declaration printing - was unreadable before - no semicolons after closing "}" for types R=r OCL=20379 CL=20379
2008-12-02- oversight: extra allow source-level line breaks inside statement listsRobert Griesemer3-2/+6
- fixed printing of empty structs/interfaces - enable two more tests R=r OCL=20296 CL=20296
2008-12-02- fine-tuning of white spaceRobert Griesemer2-51/+115
- 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
2008-12-02The flag and fmt libraries are now available from gccgo byIan Lance Taylor1-10/+2
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
2008-12-01- enabled comment printing by defaultRobert Griesemer4-73/+133
- 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
2008-12-01- better comment formatting, starting to look goodRobert Griesemer2-77/+70
- 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
2008-11-26- collect addition source position information in parserRobert Griesemer4-151/+197
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
2008-11-26- snapshot of state before trying yet another, hopefully better workingRobert Griesemer6-150/+174
way to integrate comments into the generated output - various simplificatins and cleanups throughout R=r OCL=20062 CL=20062
2008-11-24- move error handling out of scannerRobert Griesemer2-164/+102
- use more of the existing library code R=r OCL=19957 CL=19959
2008-11-21- implemented arbitrary padding char for tabwriterRobert Griesemer2-2/+10
- 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
2008-11-20- move tabwriter into libraryRobert Griesemer3-347/+2
- 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
2008-11-20- correct error handling throughoutRobert Griesemer3-117/+150
- documentation, cleanups - more options R=r OCL=19736 CL=19736
2008-11-19- array-ify code, remove local implementationRobert Griesemer6-227/+159
R=r OCL=19648 CL=19651
2008-11-18- support for alignment via tabs instead of blanksRobert Griesemer4-14/+43
- exclude a test due to syntax errors R=r OCL=19563 CL=19565
2008-11-18- untab app (snapshot - not quite complete)Robert Griesemer3-9/+67
R=r OCL=19558 CL=19558
2008-11-17- factored out tabwriter a separate writer filterRobert Griesemer5-195/+326
(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
2008-11-13- better comment classificationRobert Griesemer4-58/+68
- related cleanups R=r OCL=19227 CL=19227
2008-11-13* pretty printing snapshot: towards printing comments nicelyRobert Griesemer7-128/+277
- 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
2008-11-10more work on elastic tabs:Robert Griesemer1-86/+110
- 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
2008-11-07- steps towards "flexible tab stops" simulation in prettyRobert Griesemer4-26/+179
printing output - not yet enabled R=r OCL=18842 CL=18842
2008-11-05- fixed typo in parser.goRobert Griesemer2-2/+2
- re-enabled bug118.go for pretty R=r OCL=18604 CL=18604
2008-11-05- temporarily excluding bug118.go, causing pretty troubleRobert Griesemer1-1/+1
R=r OCL=18602 CL=18602
2008-11-04get rid of bignum leftoversRobert Griesemer4-808/+0
R=r OCL=18475 CL=18475
2008-11-04install bignum as libraryRobert Griesemer2-1751/+0
R=r DELTA=3501 (1752 added, 1749 deleted, 0 changed) OCL=18460 CL=18471
2008-11-04- better support for string conversionsRobert Griesemer2-73/+107
- removed trailing tabs R=r OCL=18458 CL=18458
2008-11-04- completed integer support (some logical functions missing)Robert Griesemer2-468/+991
- completed rational support - better documentation - more tests - cleanups R=r OCL=18438 CL=18438
2008-11-03- changed general div/mod implementation to a faster algorithmRobert Griesemer2-234/+367
(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
2008-10-31- gcd, exponentiation, population countRobert Griesemer2-8/+121
- more rational numbers stuff - more tests R=r OCL=18295 CL=18295
2008-10-31- handle field tags in pretty printerRobert Griesemer5-19/+30
R=r OCL=18264 CL=18264
2008-10-31- fixed another test (arithmetic vs. logic shift bug)Robert Griesemer2-13/+30
R=r OCL=18235 CL=18237
2008-10-30- div and mod (arbitrary precision)Robert Griesemer2-104/+278
- more tests - some global renames R=r OCL=18219 CL=18219
2008-10-29- implemented ShrRobert Griesemer2-39/+51
- 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
2008-10-29- added shl operation, extra testsRobert Griesemer2-124/+144
- 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
2008-10-28- update test.sh (caused an error since src/pkg dir is empty now)Robert Griesemer1-1/+0
R=r OCL=17987 CL=17987
2008-10-28- steps towards implementation of div and modRobert Griesemer2-177/+324
- string conversion in different bases - tracked down a 6g bug, use work-around for now R=r OCL=17981 CL=17981
2008-10-27- bug fixes, cleanupsRobert Griesemer1-26/+34
- integer string conversion R=r OCL=17923 CL=17923
2008-10-27- created staging area for getting bignum package up-to-speed again,Robert Griesemer6-0/+1378
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
2008-10-26- added simple facility to print Makefile dependency rules given a Go source ↵Robert Griesemer7-55/+142
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
2008-10-24another step toward interface subtypesKen Thompson2-6/+6
put explicit ./ on some runtime tests R=r OCL=17839 CL=17839
2008-10-24- missing fileRobert Griesemer1-0/+46
R=r OCL=17813 CL=17813
2008-10-24- some factoring of scan/parse phase so we can attach other functionalityRobert Griesemer5-50/+70
easily (for instance import dependency extraction) - support for new "..." syntax - minor cleanup R=r OCL=17811 CL=17811
2008-10-23- expanded parsing heuristics to deal with new(T, ...)Robert Griesemer5-51/+107
- 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
2008-10-22- exclude newfn.go from tests - cannot be parsed syntactically aloneRobert Griesemer1-1/+2
in general R=rsc DELTA=2 (1 added, 0 deleted, 1 changed) OCL=17624 CL=17624
2008-10-20- remove inconsistent directory from testsRobert Griesemer1-1/+0
R=rsc DELTA=1 (0 added, 1 deleted, 0 changed) OCL=17514 CL=17514