7cc7ab5c18
new syntax is if_true( . .. . ) where any string is allowed in case of true
18 lines
352 B
Scilab
18 lines
352 B
Scilab
if_overflow(3 + 100000 )
|
|
Object.initialize(3)
|
|
end
|
|
-- -- --
|
|
s(:if_statement,
|
|
s(:condition,
|
|
s(:operator_value, :>,
|
|
s(:int, 3),
|
|
s(:name, :var))),
|
|
s(:true_statements,
|
|
s(:call,
|
|
s(:name, :initialize),
|
|
s(:arguments,
|
|
s(:int, 3)),
|
|
s(:receiver,
|
|
s(:class_name, :Object)))),
|
|
s(:false_statements, nil))
|