bit more soml
This commit is contained in:
parent
3e4dcd35c7
commit
bcc366f8fd
@ -141,7 +141,7 @@ module Soml
|
||||
end
|
||||
|
||||
def self.load_parfait
|
||||
["layout","object"].each do |o|
|
||||
["word","class","layout","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)
|
||||
|
5
lib/soml/parfait/class.soml
Normal file
5
lib/soml/parfait/class.soml
Normal file
@ -0,0 +1,5 @@
|
||||
class Class < Object
|
||||
Word get_name()
|
||||
return get_internal(4)
|
||||
end
|
||||
end
|
@ -1,7 +1,7 @@
|
||||
class Layout < Object
|
||||
|
||||
Class object_class()
|
||||
get_internal(2)
|
||||
return get_internal(2)
|
||||
end
|
||||
|
||||
end
|
||||
|
2
lib/soml/parfait/word.soml
Normal file
2
lib/soml/parfait/word.soml
Normal file
@ -0,0 +1,2 @@
|
||||
class Word < Object
|
||||
end
|
Loading…
Reference in New Issue
Block a user