Commit 174bb3f
committed
WIP: Preparation for BinaryOperandNode with $left and $right instead of multiple operands
i have the feeling this will make working with the BinaryOperandNode (eg type resolving/inference) easier.
Also the php and js AST use the $left $right and $operator
as a sideeffect it transpiles
- transpile `true === true === true` correctly (with Parenthesis):
`(true === true) === true`
without Parenthesis its invalid php1 parent 4e4175e commit 174bb3f
File tree
5 files changed
+229
-150
lines changed- src
- Parser/Ast
- Target/Php/Transpiler/BinaryOperation
- test
- Integration/Examples/Numbers
- Unit/Target/Php/Transpiler/BinaryOperation
5 files changed
+229
-150
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 34 | | |
41 | 35 | | |
42 | | - | |
| 36 | + | |
43 | 37 | | |
44 | | - | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
| |||
55 | 48 | | |
56 | 49 | | |
57 | 50 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 51 | + | |
64 | 52 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 53 | + | |
68 | 54 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 55 | + | |
88 | 56 | | |
89 | 57 | | |
90 | 58 | | |
91 | 59 | | |
92 | 60 | | |
93 | 61 | | |
94 | 62 | | |
95 | | - | |
| 63 | + | |
96 | 64 | | |
97 | 65 | | |
98 | 66 | | |
99 | 67 | | |
100 | | - | |
| 68 | + | |
101 | 69 | | |
102 | 70 | | |
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 66 | + | |
71 | 67 | | |
72 | 68 | | |
0 commit comments