Commit Graph

28 Commits

Author SHA1 Message Date
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
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
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
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
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
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
z7zmey
c2f938e55c merge DocComment and PlainComment 2018-04-15 15:55:33 +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
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
b2d35d353d scanner test 2018-02-17 12:53:10 +02:00
z7zmey
b93d24f95f split scanner and parser 2018-01-24 18:42:23 +02:00