add some message and remove fields
those fields are already present in the classes (in the future they should be defined in some and integrated to ruby, but that would mean parsing to boot and parsing doesn’t yet work on opal)
This commit is contained in:
parent
502cfa357d
commit
69918c8e88
@ -141,7 +141,7 @@ module Soml
|
||||
end
|
||||
|
||||
def self.load_parfait
|
||||
["word","class","layout","object"].each do |o|
|
||||
["word","class","layout","message" , "object"].each do |o|
|
||||
str = File.open(File.expand_path("parfait/#{o}.soml", File.dirname(__FILE__))).read
|
||||
syntax = Parser::Salama.new.parse_with_debug(str)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
|
@ -1,7 +1,4 @@
|
||||
class Layout < Object
|
||||
field Class object_class
|
||||
field List instance_methods
|
||||
field Integer indexed_length
|
||||
|
||||
Class object_class()
|
||||
return self.object_class
|
||||
|
3
lib/soml/parfait/message.soml
Normal file
3
lib/soml/parfait/message.soml
Normal file
@ -0,0 +1,3 @@
|
||||
class Message < Object
|
||||
|
||||
end
|
@ -1,5 +1,4 @@
|
||||
class Object
|
||||
field Layout layout
|
||||
|
||||
Layout get_layout()
|
||||
return self.layout
|
||||
|
Loading…
Reference in New Issue
Block a user