src: create groups for related things
authorJean Privat <jean@pryen.org>
Tue, 2 Sep 2014 16:09:19 +0000 (12:09 -0400)
committerJean Privat <jean@pryen.org>
Wed, 3 Sep 2014 17:07:20 +0000 (13:07 -0400)
File are moved, some minimal change in importations

* modelize
* semantize
* frontend
* compiler
* interpreter

Signed-off-by: Jean Privat <jean@pryen.org>

34 files changed:
src/astbuilder.nit
src/compiler/abstract_compiler.nit [moved from src/abstract_compiler.nit with 100% similarity]
src/compiler/android_annotations.nit [moved from src/android_annotations.nit with 100% similarity]
src/compiler/android_platform.nit [moved from src/android_platform.nit with 100% similarity]
src/compiler/coloring.nit [moved from src/coloring.nit with 100% similarity]
src/compiler/compiler.nit [moved from src/compiler.nit with 100% similarity]
src/compiler/compiler_ffi.nit [moved from src/compiler_ffi.nit with 100% similarity]
src/compiler/emscripten_platform.nit [moved from src/emscripten_platform.nit with 100% similarity]
src/compiler/global_compiler.nit [moved from src/global_compiler.nit with 100% similarity]
src/compiler/pnacl_platform.nit [moved from src/pnacl_platform.nit with 100% similarity]
src/compiler/separate_compiler.nit [moved from src/separate_compiler.nit with 100% similarity]
src/compiler/separate_erasure_compiler.nit [moved from src/separate_erasure_compiler.nit with 100% similarity]
src/frontend/cached.nit [moved from src/cached.nit with 100% similarity]
src/frontend/check_annotation.nit [moved from src/check_annotation.nit with 100% similarity]
src/frontend/div_by_zero.nit [moved from src/div_by_zero.nit with 100% similarity]
src/frontend/frontend.nit [moved from src/frontend.nit with 100% similarity]
src/frontend/serialization_phase.nit [moved from src/serialization_phase.nit with 100% similarity]
src/frontend/simple_misc_analysis.nit [moved from src/simple_misc_analysis.nit with 100% similarity]
src/interpreter/breakpoint.nit [moved from src/breakpoint.nit with 100% similarity]
src/interpreter/debugger.nit [moved from src/debugger.nit with 99% similarity]
src/interpreter/debugger_socket.nit [moved from src/debugger_socket.nit with 100% similarity]
src/interpreter/interpreter.nit [moved from src/interpreter.nit with 100% similarity]
src/interpreter/naive_interpreter.nit [moved from src/naive_interpreter.nit with 100% similarity]
src/modelize/modelize.nit [moved from src/modelize.nit with 100% similarity]
src/modelize/modelize_class.nit [moved from src/modelize_class.nit with 100% similarity]
src/modelize/modelize_property.nit [moved from src/modelize_property.nit with 100% similarity]
src/nith.nit
src/semantize/auto_super_init.nit [moved from src/auto_super_init.nit with 100% similarity]
src/semantize/flow.nit [moved from src/flow.nit with 100% similarity]
src/semantize/local_var_init.nit [moved from src/local_var_init.nit with 100% similarity]
src/semantize/scope.nit [moved from src/scope.nit with 100% similarity]
src/semantize/semantize.nit [moved from src/semantize.nit with 100% similarity]
src/semantize/typing.nit [moved from src/typing.nit with 100% similarity]
src/vm.nit

index 3b5aceb..8e17b4e 100644 (file)
 # Instantiation and transformation of semantic nodes in the AST of expressions and statements
 module astbuilder
 
-intrude import typing
-intrude import literal
-intrude import parser
-intrude import scope
+intrude import semantize::typing
+intrude import semantize::literal
+intrude import semantize::parser
+intrude import semantize::scope
 
 # General factory to build semantic nodes in the AST of expressions
 class ASTBuilder
similarity index 100%
rename from src/coloring.nit
rename to src/compiler/coloring.nit
similarity index 100%
rename from src/compiler.nit
rename to src/compiler/compiler.nit
similarity index 100%
rename from src/cached.nit
rename to src/frontend/cached.nit
similarity index 100%
rename from src/frontend.nit
rename to src/frontend/frontend.nit
similarity index 99%
rename from src/debugger.nit
rename to src/interpreter/debugger.nit
index 0f211e6..52444f7 100644 (file)
@@ -20,8 +20,8 @@ module debugger
 import breakpoint
 intrude import naive_interpreter
 import nitx
-intrude import local_var_init
-intrude import scope
+intrude import semantize::local_var_init
+intrude import semantize::scope
 intrude import toolcontext
 private import parser_util
 
similarity index 100%
rename from src/modelize.nit
rename to src/modelize/modelize.nit
index 8a052ac..bf12e9d 100644 (file)
@@ -21,7 +21,7 @@ import modelize
 import transform
 
 import rapid_type_analysis
-import separate_erasure_compiler
+import compiler::separate_erasure_compiler
 
 redef class ToolContext
        redef fun process_options(args)
similarity index 100%
rename from src/flow.nit
rename to src/semantize/flow.nit
similarity index 100%
rename from src/scope.nit
rename to src/semantize/scope.nit
similarity index 100%
rename from src/typing.nit
rename to src/semantize/typing.nit
index 754b8ec..7e87f8c 100644 (file)
@@ -17,7 +17,7 @@
 # Implementation of the Nit virtual machine
 module vm
 
-intrude import naive_interpreter
+intrude import interpreter::naive_interpreter
 import model_utils
 import perfect_hashing