test/script/basic/parser/binaryExpr.js.EXPECTED

changeset 0
b1a7da25b547
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/script/basic/parser/binaryExpr.js.EXPECTED	Wed Apr 27 01:36:41 2016 +0800
     1.3 @@ -0,0 +1,440 @@
     1.4 +{
     1.5 +    "type": "Program",
     1.6 +    "body": [
     1.7 +        {
     1.8 +            "type": "ExpressionStatement",
     1.9 +            "expression": {
    1.10 +                "type": "BinaryExpression",
    1.11 +                "operator": "*",
    1.12 +                "left": {
    1.13 +                    "type": "Identifier",
    1.14 +                    "name": "a"
    1.15 +                },
    1.16 +                "right": {
    1.17 +                    "type": "Identifier",
    1.18 +                    "name": "b"
    1.19 +                }
    1.20 +            }
    1.21 +        }
    1.22 +    ]
    1.23 +}
    1.24 +{
    1.25 +    "type": "Program",
    1.26 +    "body": [
    1.27 +        {
    1.28 +            "type": "ExpressionStatement",
    1.29 +            "expression": {
    1.30 +                "type": "BinaryExpression",
    1.31 +                "operator": "/",
    1.32 +                "left": {
    1.33 +                    "type": "Identifier",
    1.34 +                    "name": "a"
    1.35 +                },
    1.36 +                "right": {
    1.37 +                    "type": "Identifier",
    1.38 +                    "name": "b"
    1.39 +                }
    1.40 +            }
    1.41 +        }
    1.42 +    ]
    1.43 +}
    1.44 +{
    1.45 +    "type": "Program",
    1.46 +    "body": [
    1.47 +        {
    1.48 +            "type": "ExpressionStatement",
    1.49 +            "expression": {
    1.50 +                "type": "BinaryExpression",
    1.51 +                "operator": "%",
    1.52 +                "left": {
    1.53 +                    "type": "Identifier",
    1.54 +                    "name": "a"
    1.55 +                },
    1.56 +                "right": {
    1.57 +                    "type": "Identifier",
    1.58 +                    "name": "b"
    1.59 +                }
    1.60 +            }
    1.61 +        }
    1.62 +    ]
    1.63 +}
    1.64 +{
    1.65 +    "type": "Program",
    1.66 +    "body": [
    1.67 +        {
    1.68 +            "type": "ExpressionStatement",
    1.69 +            "expression": {
    1.70 +                "type": "BinaryExpression",
    1.71 +                "operator": "+",
    1.72 +                "left": {
    1.73 +                    "type": "Identifier",
    1.74 +                    "name": "a"
    1.75 +                },
    1.76 +                "right": {
    1.77 +                    "type": "Identifier",
    1.78 +                    "name": "b"
    1.79 +                }
    1.80 +            }
    1.81 +        }
    1.82 +    ]
    1.83 +}
    1.84 +{
    1.85 +    "type": "Program",
    1.86 +    "body": [
    1.87 +        {
    1.88 +            "type": "ExpressionStatement",
    1.89 +            "expression": {
    1.90 +                "type": "BinaryExpression",
    1.91 +                "operator": "-",
    1.92 +                "left": {
    1.93 +                    "type": "Identifier",
    1.94 +                    "name": "a"
    1.95 +                },
    1.96 +                "right": {
    1.97 +                    "type": "Identifier",
    1.98 +                    "name": "b"
    1.99 +                }
   1.100 +            }
   1.101 +        }
   1.102 +    ]
   1.103 +}
   1.104 +{
   1.105 +    "type": "Program",
   1.106 +    "body": [
   1.107 +        {
   1.108 +            "type": "ExpressionStatement",
   1.109 +            "expression": {
   1.110 +                "type": "BinaryExpression",
   1.111 +                "operator": "<<",
   1.112 +                "left": {
   1.113 +                    "type": "Identifier",
   1.114 +                    "name": "a"
   1.115 +                },
   1.116 +                "right": {
   1.117 +                    "type": "Identifier",
   1.118 +                    "name": "b"
   1.119 +                }
   1.120 +            }
   1.121 +        }
   1.122 +    ]
   1.123 +}
   1.124 +{
   1.125 +    "type": "Program",
   1.126 +    "body": [
   1.127 +        {
   1.128 +            "type": "ExpressionStatement",
   1.129 +            "expression": {
   1.130 +                "type": "BinaryExpression",
   1.131 +                "operator": ">>",
   1.132 +                "left": {
   1.133 +                    "type": "Identifier",
   1.134 +                    "name": "a"
   1.135 +                },
   1.136 +                "right": {
   1.137 +                    "type": "Identifier",
   1.138 +                    "name": "b"
   1.139 +                }
   1.140 +            }
   1.141 +        }
   1.142 +    ]
   1.143 +}
   1.144 +{
   1.145 +    "type": "Program",
   1.146 +    "body": [
   1.147 +        {
   1.148 +            "type": "ExpressionStatement",
   1.149 +            "expression": {
   1.150 +                "type": "BinaryExpression",
   1.151 +                "operator": ">>>",
   1.152 +                "left": {
   1.153 +                    "type": "Identifier",
   1.154 +                    "name": "a"
   1.155 +                },
   1.156 +                "right": {
   1.157 +                    "type": "Identifier",
   1.158 +                    "name": "b"
   1.159 +                }
   1.160 +            }
   1.161 +        }
   1.162 +    ]
   1.163 +}
   1.164 +{
   1.165 +    "type": "Program",
   1.166 +    "body": [
   1.167 +        {
   1.168 +            "type": "ExpressionStatement",
   1.169 +            "expression": {
   1.170 +                "type": "BinaryExpression",
   1.171 +                "operator": "<",
   1.172 +                "left": {
   1.173 +                    "type": "Identifier",
   1.174 +                    "name": "a"
   1.175 +                },
   1.176 +                "right": {
   1.177 +                    "type": "Identifier",
   1.178 +                    "name": "b"
   1.179 +                }
   1.180 +            }
   1.181 +        }
   1.182 +    ]
   1.183 +}
   1.184 +{
   1.185 +    "type": "Program",
   1.186 +    "body": [
   1.187 +        {
   1.188 +            "type": "ExpressionStatement",
   1.189 +            "expression": {
   1.190 +                "type": "BinaryExpression",
   1.191 +                "operator": ">",
   1.192 +                "left": {
   1.193 +                    "type": "Identifier",
   1.194 +                    "name": "a"
   1.195 +                },
   1.196 +                "right": {
   1.197 +                    "type": "Identifier",
   1.198 +                    "name": "b"
   1.199 +                }
   1.200 +            }
   1.201 +        }
   1.202 +    ]
   1.203 +}
   1.204 +{
   1.205 +    "type": "Program",
   1.206 +    "body": [
   1.207 +        {
   1.208 +            "type": "ExpressionStatement",
   1.209 +            "expression": {
   1.210 +                "type": "BinaryExpression",
   1.211 +                "operator": "<=",
   1.212 +                "left": {
   1.213 +                    "type": "Identifier",
   1.214 +                    "name": "a"
   1.215 +                },
   1.216 +                "right": {
   1.217 +                    "type": "Identifier",
   1.218 +                    "name": "b"
   1.219 +                }
   1.220 +            }
   1.221 +        }
   1.222 +    ]
   1.223 +}
   1.224 +{
   1.225 +    "type": "Program",
   1.226 +    "body": [
   1.227 +        {
   1.228 +            "type": "ExpressionStatement",
   1.229 +            "expression": {
   1.230 +                "type": "BinaryExpression",
   1.231 +                "operator": ">=",
   1.232 +                "left": {
   1.233 +                    "type": "Identifier",
   1.234 +                    "name": "a"
   1.235 +                },
   1.236 +                "right": {
   1.237 +                    "type": "Identifier",
   1.238 +                    "name": "b"
   1.239 +                }
   1.240 +            }
   1.241 +        }
   1.242 +    ]
   1.243 +}
   1.244 +{
   1.245 +    "type": "Program",
   1.246 +    "body": [
   1.247 +        {
   1.248 +            "type": "ExpressionStatement",
   1.249 +            "expression": {
   1.250 +                "type": "BinaryExpression",
   1.251 +                "operator": "instanceof",
   1.252 +                "left": {
   1.253 +                    "type": "Identifier",
   1.254 +                    "name": "a"
   1.255 +                },
   1.256 +                "right": {
   1.257 +                    "type": "Identifier",
   1.258 +                    "name": "b"
   1.259 +                }
   1.260 +            }
   1.261 +        }
   1.262 +    ]
   1.263 +}
   1.264 +{
   1.265 +    "type": "Program",
   1.266 +    "body": [
   1.267 +        {
   1.268 +            "type": "ExpressionStatement",
   1.269 +            "expression": {
   1.270 +                "type": "BinaryExpression",
   1.271 +                "operator": "==",
   1.272 +                "left": {
   1.273 +                    "type": "Identifier",
   1.274 +                    "name": "a"
   1.275 +                },
   1.276 +                "right": {
   1.277 +                    "type": "Identifier",
   1.278 +                    "name": "b"
   1.279 +                }
   1.280 +            }
   1.281 +        }
   1.282 +    ]
   1.283 +}
   1.284 +{
   1.285 +    "type": "Program",
   1.286 +    "body": [
   1.287 +        {
   1.288 +            "type": "ExpressionStatement",
   1.289 +            "expression": {
   1.290 +                "type": "BinaryExpression",
   1.291 +                "operator": "!=",
   1.292 +                "left": {
   1.293 +                    "type": "Identifier",
   1.294 +                    "name": "a"
   1.295 +                },
   1.296 +                "right": {
   1.297 +                    "type": "Identifier",
   1.298 +                    "name": "b"
   1.299 +                }
   1.300 +            }
   1.301 +        }
   1.302 +    ]
   1.303 +}
   1.304 +{
   1.305 +    "type": "Program",
   1.306 +    "body": [
   1.307 +        {
   1.308 +            "type": "ExpressionStatement",
   1.309 +            "expression": {
   1.310 +                "type": "BinaryExpression",
   1.311 +                "operator": "===",
   1.312 +                "left": {
   1.313 +                    "type": "Identifier",
   1.314 +                    "name": "a"
   1.315 +                },
   1.316 +                "right": {
   1.317 +                    "type": "Identifier",
   1.318 +                    "name": "b"
   1.319 +                }
   1.320 +            }
   1.321 +        }
   1.322 +    ]
   1.323 +}
   1.324 +{
   1.325 +    "type": "Program",
   1.326 +    "body": [
   1.327 +        {
   1.328 +            "type": "ExpressionStatement",
   1.329 +            "expression": {
   1.330 +                "type": "BinaryExpression",
   1.331 +                "operator": "!==",
   1.332 +                "left": {
   1.333 +                    "type": "Identifier",
   1.334 +                    "name": "a"
   1.335 +                },
   1.336 +                "right": {
   1.337 +                    "type": "Identifier",
   1.338 +                    "name": "b"
   1.339 +                }
   1.340 +            }
   1.341 +        }
   1.342 +    ]
   1.343 +}
   1.344 +{
   1.345 +    "type": "Program",
   1.346 +    "body": [
   1.347 +        {
   1.348 +            "type": "ExpressionStatement",
   1.349 +            "expression": {
   1.350 +                "type": "BinaryExpression",
   1.351 +                "operator": "&",
   1.352 +                "left": {
   1.353 +                    "type": "Identifier",
   1.354 +                    "name": "a"
   1.355 +                },
   1.356 +                "right": {
   1.357 +                    "type": "Identifier",
   1.358 +                    "name": "b"
   1.359 +                }
   1.360 +            }
   1.361 +        }
   1.362 +    ]
   1.363 +}
   1.364 +{
   1.365 +    "type": "Program",
   1.366 +    "body": [
   1.367 +        {
   1.368 +            "type": "ExpressionStatement",
   1.369 +            "expression": {
   1.370 +                "type": "BinaryExpression",
   1.371 +                "operator": "^",
   1.372 +                "left": {
   1.373 +                    "type": "Identifier",
   1.374 +                    "name": "a"
   1.375 +                },
   1.376 +                "right": {
   1.377 +                    "type": "Identifier",
   1.378 +                    "name": "b"
   1.379 +                }
   1.380 +            }
   1.381 +        }
   1.382 +    ]
   1.383 +}
   1.384 +{
   1.385 +    "type": "Program",
   1.386 +    "body": [
   1.387 +        {
   1.388 +            "type": "ExpressionStatement",
   1.389 +            "expression": {
   1.390 +                "type": "BinaryExpression",
   1.391 +                "operator": "|",
   1.392 +                "left": {
   1.393 +                    "type": "Identifier",
   1.394 +                    "name": "a"
   1.395 +                },
   1.396 +                "right": {
   1.397 +                    "type": "Identifier",
   1.398 +                    "name": "b"
   1.399 +                }
   1.400 +            }
   1.401 +        }
   1.402 +    ]
   1.403 +}
   1.404 +{
   1.405 +    "type": "Program",
   1.406 +    "body": [
   1.407 +        {
   1.408 +            "type": "ExpressionStatement",
   1.409 +            "expression": {
   1.410 +                "type": "LogicalExpression",
   1.411 +                "operator": "&&",
   1.412 +                "left": {
   1.413 +                    "type": "Identifier",
   1.414 +                    "name": "a"
   1.415 +                },
   1.416 +                "right": {
   1.417 +                    "type": "Identifier",
   1.418 +                    "name": "b"
   1.419 +                }
   1.420 +            }
   1.421 +        }
   1.422 +    ]
   1.423 +}
   1.424 +{
   1.425 +    "type": "Program",
   1.426 +    "body": [
   1.427 +        {
   1.428 +            "type": "ExpressionStatement",
   1.429 +            "expression": {
   1.430 +                "type": "LogicalExpression",
   1.431 +                "operator": "||",
   1.432 +                "left": {
   1.433 +                    "type": "Identifier",
   1.434 +                    "name": "a"
   1.435 +                },
   1.436 +                "right": {
   1.437 +                    "type": "Identifier",
   1.438 +                    "name": "b"
   1.439 +                }
   1.440 +            }
   1.441 +        }
   1.442 +    ]
   1.443 +}

mercurial