soml-parser/test/cases/class_definition/class_derived.tst
Torsten Ruger ab0a94bd51 change type to class name
although int is still allowed for integers (gets replaced though)
2015-10-14 15:48:53 +03:00

24 lines
503 B
Scilab

class Foo < Object
field int fff = 3
int func()
return self.fff
end
end
-- -- --
s(:statements,
s(:class, :Foo,
s(:derives, :Object),
s(:statements,
s(:class_field, :Integer, :fff,
s(:int, 3)),
s(:function, :Integer,
s(:name, :func),
s(:parameters),
s(:statements,
s(:return,
s(:field_access,
s(:receiver,
s(:name, :self)),
s(:field,
s(:name, :fff)))))))))