1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00

parse InstanceOf BinaryExpressions

This commit is contained in:
joshvera 2017-09-10 21:49:21 +01:00
parent a0f0dc6b6e
commit fdc7368829

View File

@ -54,6 +54,7 @@ type Syntax = '[
, Expression.Delete
, Expression.Void
, Expression.Typeof
, Expression.InstanceOf
, Literal.Array
, Literal.Boolean
, Literal.Float
@ -1214,6 +1215,7 @@ binaryExpression = makeTerm' <$> symbol BinaryExpression <*> children (infixTerm
, (inj .) . Expression.Or <$ symbol AnonPipePipe
, (inj .) . Expression.BOr <$ symbol AnonPipe
, (inj .) . Expression.BXOr <$ symbol AnonCaret
, (inj .) . Expression.InstanceOf <$ symbol AnonInstanceof
, (inj .) . Expression.Equal <$ (symbol AnonEqualEqual <|> symbol AnonEqualEqualEqual)
, (inj .) . invert Expression.Equal <$ (symbol AnonBangEqual <|> symbol AnonBangEqualEqual)
, (inj .) . Expression.LShift <$ symbol AnonLAngleLAngle