Fixing new parfait boot process

mostly about setting the types to existing objects. 
Then after space is in place, it is set automatically

also a fair bit of misc in the commit
This commit is contained in:
2019-09-23 00:07:30 +03:00
parent e61c5d4a55
commit 7b40bb9106
16 changed files with 70 additions and 73 deletions

View File

@ -13,13 +13,13 @@ module Parfait
# Object length is measured in non-type cells though
class Word < Data8
attr_reader :char_length
attr_reader :char_length , :next_word
def self.type_length
2 # 0 type , 1 char_length
3 # 0 type , 1 char_length , next_word
end
def self.get_length_index
type_length - 1
type_length - 2
end
# initialize with length. For now we try to keep all non-parfait (including String) out
# String will contain spaces for non-zero length