z7zmey
|
69e3111221
|
#67: skip unexpected character in input
|
2018-11-05 16:56:27 +02:00 |
|
z7zmey
|
623a90a418
|
#56: now, __halt_compiler(); terminates parsing process
|
2018-07-24 21:49:26 +03:00 |
|
z7zmey
|
1a495d615b
|
#58: fixed /**/ comment termination
|
2018-07-23 20:50:02 +03:00 |
|
Vadym Slizov
|
4d2484867b
|
Merge pull request #59 from imuli/slash-star-slash
prevent interpreting `/*/` as an entire comment
|
2018-07-23 20:28:05 +03:00 |
|
z7zmey
|
96265403d0
|
#57 test
|
2018-07-23 19:27:06 +03:00 |
|
Imuli
|
5675714af8
|
accept backslash newline in single quotes
fixes #57
|
2018-07-20 19:55:01 -04:00 |
|
Imuli
|
3f86e882d3
|
prevent interpreting /*/ as an entire comment
fixes #58
|
2018-07-20 07:14:53 -04:00 |
|
Imuli
|
3ba2d2a91b
|
distinguish unknown unicode characters from EOF
|
2018-07-14 08:06:00 -04: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 |
|