Hardcode AST like parser would produce it
This commit is contained in:
parent
a4b9e6d04a
commit
efd6a52f16
2 changed files with 9 additions and 9 deletions
|
@ -15,9 +15,9 @@ module Mutant
|
|||
end
|
||||
module_function :s
|
||||
|
||||
NAN = s(:send, s(:float, 0.0), :/, s(:args, s(:float, 0.0)))
|
||||
NEGATIVE_INFINITY = s(:send, s(:float, -1.0), :/, s(:args, s(:float, 0.0)))
|
||||
INFINITY = s(:send, s(:float, 1.0), :/, s(:args, s(:float, 0.0)))
|
||||
NAN = s(:begin, s(:send, s(:float, 0.0), :/, s(:args, s(:float, 0.0))))
|
||||
NEGATIVE_INFINITY = s(:begin, s(:send, s(:float, -1.0), :/, s(:args, s(:float, 0.0))))
|
||||
INFINITY = s(:begin, s(:send, s(:float, 1.0), :/, s(:args, s(:float, 0.0))))
|
||||
NEW_OBJECT = s(:send, s(:const, s(:cbase), :Object), :new)
|
||||
|
||||
RAISE = s(:send, nil, :raise)
|
||||
|
|
Loading…
Reference in a new issue