Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Alternate not equal binary operator. Closes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
nwronski committed Jul 11, 2016
1 parent 6c001f4 commit 68f893f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/grammar.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -2216,16 +2216,17 @@ binary_nodes
/ binary_mod
/ binary_plus
/ binary_minus
/ binary_notequal_b
/ binary_left
/ binary_right
/ binary_and
/ binary_or
/ binary_lte
/ binary_lt
/ binary_gte
/ binary_lt
/ binary_gt
/ binary_lang
/ binary_notequal
/ binary_notequal_a
/ binary_equal

binary_concat "Or"
Expand Down Expand Up @@ -2273,9 +2274,11 @@ binary_gte "Greater Than Or Equal"
binary_equal "Equal"
= sym_equal ( sym_equal )?

binary_notequal "Not Equal"
= ( sym_excl sym_equal )
/ ( sym_lt sym_gt )
binary_notequal_a "Not Equal"
= sym_excl sym_equal

binary_notequal_b "Not Equal"
= sym_lt sym_gt

binary_lang
= binary_lang_isnt
Expand Down

0 comments on commit 68f893f

Please sign in to comment.