load parfait soml files
No dir glob for precise order
This commit is contained in:
parent
d878ce00d8
commit
50b03a5e94
@ -143,6 +143,15 @@ module Soml
|
||||
raise "space is a reserved name" if name == :space
|
||||
name
|
||||
end
|
||||
|
||||
def self.load_parfait
|
||||
["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)
|
||||
self.new.process( parts )
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
7
lib/soml/parfait/object.soml
Normal file
7
lib/soml/parfait/object.soml
Normal file
@ -0,0 +1,7 @@
|
||||
class Object
|
||||
|
||||
Layout get_layout()
|
||||
return get_internal(1)
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user