From 874f080ba25e008b39dd7eacc43bd149a13db1a0 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 28 Apr 2014 22:08:09 +0300 Subject: [PATCH] Semi random code for the next step --- lib/core/integer.rb | 4 ++++ lib/core/string.rb | 4 ++++ lib/core/system.rb | 9 +++++++++ lib/vm/machine.rb | 7 +++++++ lib/vm/values.rb | 17 +++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 lib/core/integer.rb create mode 100644 lib/core/string.rb create mode 100644 lib/core/system.rb create mode 100644 lib/vm/machine.rb create mode 100644 lib/vm/values.rb diff --git a/lib/core/integer.rb b/lib/core/integer.rb new file mode 100644 index 00000000..0c6a5016 --- /dev/null +++ b/lib/core/integer.rb @@ -0,0 +1,4 @@ +module Core + module Integer + end +end \ No newline at end of file diff --git a/lib/core/string.rb b/lib/core/string.rb new file mode 100644 index 00000000..38ca05a6 --- /dev/null +++ b/lib/core/string.rb @@ -0,0 +1,4 @@ +module Core + module String + end +end diff --git a/lib/core/system.rb b/lib/core/system.rb new file mode 100644 index 00000000..d5e90dd7 --- /dev/null +++ b/lib/core/system.rb @@ -0,0 +1,9 @@ +module Core + module System + + def puts io , c-string , length + + end + + end +end diff --git a/lib/vm/machine.rb b/lib/vm/machine.rb new file mode 100644 index 00000000..4eebd8f6 --- /dev/null +++ b/lib/vm/machine.rb @@ -0,0 +1,7 @@ +module Vm + # the vm machine is what does things. The only one that does things + # all things must go through the machine to actually happen + class Machine + + end +end diff --git a/lib/vm/values.rb b/lib/vm/values.rb new file mode 100644 index 00000000..4b23341f --- /dev/null +++ b/lib/vm/values.rb @@ -0,0 +1,17 @@ +module Vm + class Value + end + + + class Word < Value + end + + class Reference < Value + end + + class MemoryReference < Reference + end + + class ObjectReference < Reference + end +end \ No newline at end of file