mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +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 ===).
22 lines
327 B
Plaintext
22 lines
327 B
Plaintext
(Program
|
|
(For
|
|
(Assignment
|
|
(Identifier)
|
|
(Float))
|
|
(LessThan
|
|
(Identifier)
|
|
(Float))
|
|
(Update
|
|
(Identifier))
|
|
(
|
|
(If
|
|
(StrictEqual
|
|
(Identifier)
|
|
(Float))
|
|
(
|
|
(Break
|
|
(Empty)))
|
|
(Empty))
|
|
(Empty)
|
|
(Identifier))))
|