Commit Graph

18 Commits

Author SHA1 Message Date
z7zmey
bfc346ebab #40 reduce memory allocations for position.Position by using sync.Pool 2018-06-12 21:14:11 +03:00
z7zmey
2737e98559 #27 reduce memory allocations for scanner.Token by using sync.Pool 2018-06-12 19:37:22 +03:00
z7zmey
af379a61dd Merge branch 'comments3' 2018-06-07 15:06:54 +03:00
z7zmey
d72d3b7980 refactor tokenString 2018-06-05 15:20:23 +03:00
z7zmey
788628d902 #21 scanner.Lexer.charsToBytes optimization 2018-06-05 01:52:04 +03:00
z7zmey
e396f81eea php7: save all comments 2018-05-27 18:07:26 +03:00
z7zmey
e7a9de3dfc #18 replace heredocLabel variable from global 2018-05-24 12:14:30 +03:00
Imuli
d73ea72530 the simple fix for #14 (panic on 32-bit)
FileSet starts `base` at 1, and adds `size+1` for every file.
  So with 32 bit ints, anything larger than 2³¹-3 overflows.
2018-05-15 09:59:04 -04:00
z7zmey
435dc5c706 scanner.NewToken returns pointer, and scanner.Token saves position as position.Position 2018-04-15 22:59:06 +03:00
z7zmey
781a55659b save comment position 2018-04-15 21:39:26 +03:00
z7zmey
c2f938e55c merge DocComment and PlainComment 2018-04-15 15:55:33 +03:00
z7zmey
e65ace8984 merge token package into scanner package 2018-04-15 14:47:40 +03:00
z7zmey
7a0e5fc758 update package comments 2018-02-20 20:22:15 +02:00
z7zmey
ac6432b6c9 fmt scanner/lexer.go 2018-02-19 13:36:12 +02:00
z7zmey
ae3f612879 Add simple comments to scanner exported methods 2018-02-19 13:34:44 +02:00
z7zmey
aee54762aa Add simple comments to scanner exported methods 2018-02-19 13:33:51 +02:00
z7zmey
70c091d323 fix token consts 2018-01-29 16:11:45 +02:00
z7zmey
b93d24f95f split scanner and parser 2018-01-24 18:42:23 +02:00