summaryrefslogtreecommitdiff
path: root/src/lib/go/scanner.go
AgeCommit message (Collapse)AuthorFilesLines
2009-03-26minor tweaks:Robert Griesemer1-12/+30
- permit scanner to run w/o error handler - provide an error counter R=iant DELTA=43 (25 added, 0 deleted, 18 changed) OCL=26804 CL=26812
2009-03-26fix scanner initialization, add testRobert Griesemer1-1/+3
R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=26798 CL=26798
2009-03-26- renamed scanner.Location to token.PositionRobert Griesemer1-50/+44
- by moving Position into token, scanner dependencies are removed from several files - clearer field names in token.Position, now possible to have a Pos() accessor w/o naming conflicts - added Pos() accessor - use anonymous token.Position field in AST nodes R=r DELTA=244 (28 added, 55 deleted, 161 changed) OCL=26786 CL=26793
2009-03-26- introduce explicit Token typeRobert Griesemer1-7/+7
- convert some functions into methods - corresponding changes in pretty R=r DELTA=57 (3 added, 0 deleted, 54 changed) OCL=26764 CL=26777
2009-03-16added &^ and &^=Robert Griesemer1-1/+7
R=rsc DELTA=14 (12 added, 0 deleted, 2 changed) OCL=26278 CL=26348
2009-03-12- remove special handling of '\n' characters (used to be treated as commentsRobert Griesemer1-46/+28
for pretty printer purposes - now properly ignored as white space since we have line/col information) - changed sample use in comment to an actually compiled function to make sure sample is actually working - added extra tests (checking line and column values, and the tokenize function) R=rsc DELTA=253 (61 added, 67 deleted, 125 changed) OCL=26143 CL=26181
2009-03-11- scanner to track line/col number instead of byte position onlyRobert Griesemer1-59/+61
- fixed a parameter name in tabwriter R=rsc DELTA=110 (21 added, 17 deleted, 72 changed) OCL=26123 CL=26127
2009-03-10- allow unicode digits in identifiersRobert Griesemer1-28/+35
- fixed a bug with character escapes (before: allowed arbitrary long sequences) R=r DELTA=63 (33 added, 19 deleted, 11 changed) OCL=26010 CL=26070
2009-03-09- more documentation adjustmentsRobert Griesemer1-5/+5
R=rsc DELTA=6 (0 added, 1 deleted, 5 changed) OCL=25970 CL=25973
2009-03-09Fixing comment.Robert Griesemer1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=25956 CL=25960
2009-03-09scanner.go documentationRobert Griesemer1-13/+18
R=r DELTA=22 (8 added, 3 deleted, 11 changed) OCL=25947 CL=25955
2009-03-09- directory rename lang -> goRobert Griesemer1-0/+475
R=rsc DELTA=2070 (1035 added, 1035 deleted, 0 changed) OCL=25939 CL=25939