Commit Graph

141 Commits

Author SHA1 Message Date
z7zmey
16de29a2a3 remove meta.ConstantEncapsedStringToken and meta.StringToken 2018-12-10 11:53:22 +02:00
z7zmey
2efb4dc4cf remove meta.IdentifierToken 2018-12-10 11:53:22 +02:00
z7zmey
5e964e074b remove meta.VariableToken meta.DollarOpenCurlyBracesToken meta.DollarToken and fix go_dumper 2018-10-24 22:32:35 +03:00
z7zmey
fd87c9cc34 remove StringVar attribute from expr.Variable 2018-10-24 17:04:13 +03: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
623a90a418 #56: now, __halt_compiler(); terminates parsing process 2018-07-24 21:49:26 +03:00
z7zmey
18d6d59292 #50: nodes stmt.Exit and stmt.Die was merged 2018-07-10 00:51:02 +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
36d0cf4823 use empty *expr.ArrayItem to represent missed a list and array items. 2018-06-26 23:49:00 +03:00
z7zmey
b62cb4359b Merge branch 'master' into dev 2018-06-26 23:09:16 +03:00
z7zmey
290645f3c9 #44: do not trim last nil if array item list ends by a comma 2018-06-26 12:22:51 +03:00
z7zmey
10c63a30ae #44: fix crash on an empty list item 2018-06-26 11:57:17 +03:00
z7zmey
3cd45ecac5 #25: save comments within node 2018-06-26 00:07:02 +03:00
z7zmey
1ebb0c6fad #25: save position within node 2018-06-25 23:30:10 +03:00
z7zmey
2737e98559 #27 reduce memory allocations for scanner.Token by using sync.Pool 2018-06-12 19:37:22 +03:00
z7zmey
43451a070f #26 replace TrimLeft by TrimLeftFunc 2018-06-10 14:53:10 +03:00
z7zmey
d13681c042 #38 fix saving positions for php5 ArrayDimFetch, PropertyFetch and MethodCall nodes 2018-06-10 10:01:25 +03:00
z7zmey
63cdd2931b #34 fix saving class node position 2018-06-08 10:58:30 +03:00
z7zmey
944a343f0f php5: save all comments 2018-06-07 02:25:27 +03:00
z7zmey
6ccca996a8 changing ClosureUse node purpose
Now ClosureUse is a container node for variable and reference nodes
2018-06-03 12:38:58 +03:00
z7zmey
ec0ef26bd6 create expr.Reference node
[wip] create expr.Reference node

[wip] create expr.Reference node

[wip] create expr.Reference node

fix
2018-06-03 11:35:14 +03:00
z7zmey
ac74ae3225 create ClassExtends ClassImplements InterfaceExtends nodes 2018-06-03 10:50:37 +03:00
z7zmey
cf4fb26764 remove boolWithToken type 2018-06-03 10:19:46 +03:00
z7zmey
e93874f644 remove altSintaxNode type 2018-06-03 09:47:26 +03:00
z7zmey
a488f43496 remove nodesWithEndToken type 2018-06-03 09:35:44 +03:00
z7zmey
2abe1dfb84 create Root node 2018-06-02 18:57:30 +03:00
z7zmey
d1b0cebf9a create CaseList node 2018-06-02 17:40:47 +03:00
z7zmey
f8d9d6d7c2 create TraitAdaptationList node 2018-06-02 17:12:24 +03:00
z7zmey
8fc4c60bfe create ArgumentList node 2018-05-30 00:14:24 +03:00
z7zmey
b383fe98fe create token name constants in comment package 2018-05-27 22:15:27 +03:00
z7zmey
e396f81eea php7: save all comments 2018-05-27 18:07:26 +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
e65ace8984 merge token package into scanner package 2018-04-15 14:47:40 +03:00
z7zmey
343896d019 issue #8: php5 and php7 package refactoring 2018-04-10 01:03:20 +03:00
z7zmey
83a1400a4f error tolerant parsing 2018-04-09 23:08:29 +03:00
z7zmey
9ea1f05f90 add Heredoc node 2018-04-05 13:55:01 +03:00
z7zmey
47c51ea022 rename AssignRef to Reference 2018-04-05 12:03:32 +03:00
z7zmey
d19b16e161 remove Cast prefix from node names 2018-04-05 11:59:29 +03:00
z7zmey
643027db9a trim $ from variable name identifier 2018-03-18 16:50:19 +02:00
z7zmey
4dda4fe7af remove underscore from package names 2018-02-19 13:12:09 +02:00
z7zmey
e75a625528 split Switch and AltSwitch nodes 2018-02-18 20:39:41 +02:00
z7zmey
d0296f78e3 split Foreach and AltForeach nodes 2018-02-18 20:29:33 +02:00
z7zmey
3836a86a47 split For and AltFor nodes 2018-02-18 19:57:54 +02:00
z7zmey
d498ea9863 slit While and AltWhile 2018-02-18 19:44:17 +02:00
z7zmey
1c6633e47d split Exit and Die nodes 2018-02-18 19:09:18 +02:00
z7zmey
e2e9ebc8eb php5 test coverage 2018-02-14 21:21:32 +02:00
z7zmey
30b6533864 php5 test coverage 2018-02-14 21:16:11 +02:00
z7zmey
4cac863d8f php5 test coverage 2018-02-14 12:14:08 +02:00
z7zmey
5faf9769cf php5 test coverage 2018-02-13 13:38:57 +02:00
z7zmey
b5e6d263f3 php5 test coverage 2018-02-12 23:10:53 +02:00
z7zmey
98b1698db7 php5 test coverage 2018-02-12 16:37:13 +02:00
z7zmey
bf90803ef3 fix parsing php5 parameters 2018-02-12 12:09:56 +02:00
z7zmey
1e356ee7e4 Yield YieldFrom tests 2018-02-10 15:08:54 +02:00
z7zmey
322acdcda4 List tests 2018-02-10 13:25:08 +02:00
z7zmey
afb83c0bde ConstantFetch tests 2018-02-10 11:46:18 +02:00
z7zmey
f1be64b918 Array ArrayDimFetch tests 2018-02-10 11:07:20 +02:00
z7zmey
d79f18f315 expr visitor tests 2018-02-10 02:02:54 +02:00
z7zmey
31b81540f3 TraitUse tests 2018-02-09 14:48:10 +02:00
z7zmey
8f40777c96 Foreach tests 2018-02-09 00:02:12 +02:00
z7zmey
c112d1dcf0 If tests 2018-02-08 23:31:38 +02:00
z7zmey
1ef722b4bb ClassConstList tests 2018-02-08 19:52:22 +02:00
z7zmey
0dac524c62 add php5 tests 2018-02-08 12:48:38 +02:00
z7zmey
d7d17326b6 stmt visitor tests 2018-02-06 19:11:47 +02:00
z7zmey
025413d2a0 php5 syntax 2018-02-04 20:55:45 +02:00
z7zmey
fbe20bbbb6 php5 syntax 2018-02-04 19:37:27 +02:00
z7zmey
b1c1bb6dc6 php5 syntax 2018-02-04 18:51:44 +02:00
z7zmey
1f448dade7 php5 syntax 2018-02-04 00:37:43 +02:00
z7zmey
1ffa0fce5f php5 syntax 2018-02-04 00:09:37 +02:00
z7zmey
1d4e52ebc5 php5 syntax 2018-02-03 20:13:11 +02:00
z7zmey
f1908571dd php5 syntax 2018-02-03 19:33:22 +02:00
z7zmey
ccfa3988be php5 syntax 2018-02-03 15:24:00 +02:00
z7zmey
7b8c30d9ee php5 syntax 2018-02-03 14:41:34 +02:00
z7zmey
9cbf4de42e php5 syntax 2018-02-03 14:29:23 +02:00
z7zmey
4225f07358 php5 syntax 2018-02-03 12:09:02 +02:00
z7zmey
79a9bf3282 php5 syntax 2018-02-02 15:01:03 +02:00
z7zmey
b4cdb8f8d7 php5 syntax 2018-02-02 14:36:57 +02:00
z7zmey
c662e0c20e php5 syntax 2018-02-01 20:40:04 +02:00
z7zmey
c80f0b8fa0 php5 syntax 2018-02-01 16:07:18 +02:00
z7zmey
799cd1d5ce php5 syntax 2018-02-01 12:35:43 +02:00
z7zmey
58d606e3c2 php5 syntax 2018-02-01 12:04:17 +02:00
z7zmey
fde1601b62 php5 syntax 2018-01-31 12:55:50 +02:00
z7zmey
fc2c38b16e php5 syntax 2018-01-31 12:29:38 +02:00
z7zmey
39913bd6d1 php5 syntax 2018-01-29 21:12:12 +02:00
z7zmey
af9a7e54ed php5 syntax 2018-01-29 16:43:23 +02:00
z7zmey
59d644ec9a php5 syntax 2018-01-29 16:37:09 +02:00
z7zmey
4794d3e213 php5 syntax 2018-01-29 16:22:04 +02:00
z7zmey
70c091d323 fix token consts 2018-01-29 16:11:45 +02:00
z7zmey
9fad8f790f prepare php5 bnf 2018-01-27 12:33:13 +02:00
z7zmey
e1993b7b5c prepare php5 parser files 2018-01-26 15:24:56 +02:00