mirror of
https://github.com/github/semantic.git
synced 2024-12-30 18:36:27 +03:00
eaa54a3230
TypeScript, JavaScript, and PHP support an === operator, which corresponds to strict equality (usually the equality you want). I've added a constructor to Comparison that takes care of this. Actually implementing non-strict equality for the above languages will have to wait until we can build behavior a la carte. I chose not to add Ruby's case-equality operator, though it uses ===, since the behavior is so different. (For example, a === a is not always true over Ruby's ===).
24 lines
376 B
Plaintext
24 lines
376 B
Plaintext
(Program
|
|
(For
|
|
(Assignment
|
|
(Identifier)
|
|
(Float))
|
|
(LessThan
|
|
(Identifier)
|
|
(Float))
|
|
(Update
|
|
(Identifier))
|
|
(
|
|
(If
|
|
(StrictEqual
|
|
(Identifier)
|
|
(Float))
|
|
(
|
|
{+(Continue
|
|
{+(Empty)+})+}
|
|
{-(Break
|
|
{-(Empty)-})-})
|
|
(Empty))
|
|
(Empty)
|
|
(Identifier))))
|