lib/hilbert.rb in hilbert-0.0.2700001 vs lib/hilbert.rb in hilbert-0.0.2700100
- old
+ new
@@ -3,21 +3,22 @@
require 'matrix'
require 'singleton'
require 'yaml'
$:.unshift(File.dirname(__FILE__))
-# Q core
+# Hilbert core
require 'hilbert/meta_info'
require 'hilbert/utils/ruby_ext'
require 'hilbert/lexer'
require 'hilbert/parser'
+require 'hilbert/world'
module Hilbert
$meta_info = MetaInfo.instance
+ $world = World::Entity
class << self
-
def compile(str)
lexed = Lexer.execute(str)
Kconv.tosjis(Parser.execute(lexed))
end
@@ -26,12 +27,8 @@
$meta_info.lang = lang_name.to_sym
$meta_info.opts = opts
Hilbert
end
end
-
end
end
-
-# Make alias as Q
-Q = Hilbert