Commit Graph

37 Commits

Author SHA1 Message Date
z7zmey
003ee67a86 [#101] fix constant string "{\"" 2020-01-08 09:31:40 +02:00
z7zmey
31052588b1 [#82] add support of shebang 2019-12-30 00:20:20 +02:00
z7zmey
0e55cb3b25 [#82] PHP 7.4: numeric literal separator 2019-12-26 23:54:44 +02:00
z7zmey
6afa2a089b [#82] Lexer: handle PHP 7.3 heredoc 2019-12-26 15:41:06 +02:00
z7zmey
e4a208e2a9 [#93] fix scanning constant strings 2019-06-07 09:33:35 +03:00
z7zmey
6bef3167cb [#91] add test for byte chars in variable name 2019-06-06 21:32:58 +03:00
z7zmey
2c649159c7 #80 implement Ragel based lexer 2019-03-20 21:06:56 +02:00
z7zmey
32d9c634d1 remove kylelemons/godebug 2019-02-25 18:12:39 +02:00
z7zmey
a7229f53dd rename flag -meta to -ff 2019-02-25 16:52:47 +02:00
z7zmey
b3800a2595 rename meta to freefloating; refactoring 2019-02-25 15:01:57 +02:00
z7zmey
d155c563ef Merge branch 'master' into dev 2018-11-05 17:14:09 +02:00
z7zmey
69e3111221 #67: skip unexpected character in input 2018-11-05 16:56:27 +02:00
z7zmey
4989d31874 #51 saving optional tokes and tokens that have different representation as meta 2018-08-09 11:46:56 +03:00
z7zmey
0138749c6d Merge branch 'master' into dev 2018-07-24 22:24:32 +03:00
z7zmey
1a495d615b #58: fixed /**/ comment termination 2018-07-23 20:50:02 +03:00
z7zmey
96265403d0 #57 test 2018-07-23 19:27:06 +03:00
z7zmey
867095823d fixed bug when heredoc starts by \; removing \n from a heredoc value end 2018-07-14 18:00:48 +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
e90df8ef5f #33 comment package has renamed to meta and parser now saves whitespaces 2018-06-30 23:23:19 +03:00
z7zmey
af379a61dd Merge branch 'comments3' 2018-06-07 15:06:54 +03:00
z7zmey
95c257c0f6 add (binary) cast 2018-06-05 12:24:24 +03: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
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
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