Merge pull request #440 from atavakoli/fix-js-example-logicalexpr

JavaScript example: Use LogicalExpression nodes for "&&" and "||"
This commit is contained in:
David Majda 2016-08-26 08:38:43 +02:00 committed by GitHub
commit 2a6a058c9c

View file

@ -855,12 +855,12 @@ BitwiseOROperator
LogicalANDExpression
= head:BitwiseORExpression
tail:(__ LogicalANDOperator __ BitwiseORExpression)*
{ return buildBinaryExpression(head, tail); }
{ return buildLogicalExpression(head, tail); }
LogicalANDExpressionNoIn
= head:BitwiseORExpressionNoIn
tail:(__ LogicalANDOperator __ BitwiseORExpressionNoIn)*
{ return buildBinaryExpression(head, tail); }
{ return buildLogicalExpression(head, tail); }
LogicalANDOperator
= "&&"
@ -868,12 +868,12 @@ LogicalANDOperator
LogicalORExpression
= head:LogicalANDExpression
tail:(__ LogicalOROperator __ LogicalANDExpression)*
{ return buildBinaryExpression(head, tail); }
{ return buildLogicalExpression(head, tail); }
LogicalORExpressionNoIn
= head:LogicalANDExpressionNoIn
tail:(__ LogicalOROperator __ LogicalANDExpressionNoIn)*
{ return buildBinaryExpression(head, tail); }
{ return buildLogicalExpression(head, tail); }
LogicalOROperator
= "||"