z7zmey
|
4da7b36056
|
created TokenPool
|
2018-07-12 10:53:36 +03:00 |
|
z7zmey
|
15a1a81924
|
#13: the printer prints nodes with meta(comments and whitespaces) saved by the parser
|
2018-07-08 01:48:52 +03:00 |
|
z7zmey
|
c4c0934c51
|
tokens constants moved to lexer_tokens.go
|
2018-07-08 01:06:49 +03:00 |
|
z7zmey
|
e90df8ef5f
|
#33 comment package has renamed to meta and parser now saves whitespaces
|
2018-06-30 23:23:19 +03:00 |
|
z7zmey
|
1ebb0c6fad
|
#25: save position within node
|
2018-06-25 23:30:10 +03:00 |
|
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
|
95c257c0f6
|
add (binary) cast
|
2018-06-05 12:24:24 +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
|
a9f54cba27
|
scanner: remove unnecessary lval.Token calls
|
2018-05-27 18:04:18 +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
|
983c721e83
|
scanner: fix scanning empty inline comment
|
2018-04-11 00:58:57 +03:00 |
|
z7zmey
|
9a799fc3be
|
scanner: fix heredoc
|
2018-04-06 00:24:00 +03:00 |
|
z7zmey
|
9ea1f05f90
|
add Heredoc node
|
2018-04-05 13:55:01 +03:00 |
|
z7zmey
|
5edfa095cb
|
remove redundant nop before inline html
|
2018-04-02 00:02:13 +03:00 |
|
z7zmey
|
0a85cf2e1f
|
issue #2 - fix backqouted strings
now it works as template strings
|
2018-03-30 18:35:18 +03:00 |
|
z7zmey
|
148cf59e9d
|
issue #2 - fix single line comment
fix handling end of file
add handling php close tag
|
2018-03-30 17:46:04 +03:00 |
|
z7zmey
|
d31819db30
|
issue #2 - deny numbers and slashes in first char in variable name
|
2018-03-30 14:28:50 +03:00 |
|
z7zmey
|
07f02e4497
|
issue #2 - fix template string scanning
now it correctly check first char of variable
|
2018-03-30 12:23:18 +03:00 |
|
z7zmey
|
34aba57879
|
reorganize scanner_test.go
separate the template string test and heredoc test
|
2018-03-30 11:17:37 +03:00 |
|
z7zmey
|
83bb761062
|
issue #2 - fix template string scanning
`l.Prev.Rune` is actually current rune and `c` is next rune.
|
2018-03-29 16:46:21 +03:00 |
|
z7zmey
|
e19df2783d
|
visitor package tests
|
2018-02-27 23:38:05 +02: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
|
ca6ee77850
|
scanner test
|
2018-02-17 18:50:09 +02:00 |
|
z7zmey
|
21ad25c581
|
scanner test
|
2018-02-17 18:25:57 +02:00 |
|
z7zmey
|
b2d35d353d
|
scanner test
|
2018-02-17 12:53:10 +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 |
|