Commit f586348d authored by Robert Wilhelm's avatar Robert Wilhelm Committed by Alexandre Julliard

jscript: Cc_parser_parse implement '&&' expression.

parent 109fab2a
......@@ -161,7 +161,7 @@ CCLogicalORExpression
CCLogicalANDExpression
: CCBitwiseORExpression { $$ = $1; }
| CCBitwiseANDExpression tAND CCBitwiseORExpression
{ FIXME("'&&' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
{ $$ = ccval_bool(get_ccbool($1) && get_ccbool($3)); }
CCBitwiseORExpression
: CCBitwiseXORExpression { $$ = $1; }
......
......@@ -180,6 +180,23 @@ expect(@test, true);
@set @test = (1 >= true-1)
expect(@test, true);
@set @test = (true && true)
expect(@test, true);
@set @test = (false && true)
expect(@test, false);
@set @test = (true && false)
expect(@test, false);
@set @test = (false && false)
expect(@test, false);
if(!isWin64) {
@set @test = (@_win32&&@_jscript_version>=5)
expect(@test, true);
}
@if (false)
this wouldn not parse
"@end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment