modulize basic_value

This commit is contained in:
Torsten Ruger 2016-12-09 13:40:10 +02:00
parent fa14e35a50
commit 2b008dd3da
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
module Typed module Typed
CompilerModules = ["assignment" , "call_site", "if_statement" ,"name_expression"] CompilerModules = [ "assignment" , "basic_values" , "call_site", "if_statement" ,
"name_expression"]
CompilerModules.each do |mod| CompilerModules.each do |mod|
require_relative "compiler/" + mod require_relative "compiler/" + mod
end end

View File

@ -1,7 +1,7 @@
module Typed module Typed
# collection of the simple ones, int and strings and such # collection of the simple ones, int and strings and such
Compiler.class_eval do module BasicValues
# Constant expressions can by definition be evaluated at compile time. # Constant expressions can by definition be evaluated at compile time.
# But that does not solve their storage, ie they need to be accessible at runtime from _somewhere_ # But that does not solve their storage, ie they need to be accessible at runtime from _somewhere_