rubyx/lib/soml/parfait/word.soml

21 lines
320 B
Plaintext
Raw Normal View History

2015-11-07 23:54:47 +01:00
class Word < Object
2015-11-10 18:08:48 +01:00
int char_at(int index)
index = index + 2
return get_internal(index)
2015-11-08 16:11:03 +01:00
end
2015-11-10 18:08:48 +01:00
int set_length(int i)
set_internal( 2 , i)
return i
end
Word push_char(int i)
int l = self.char_length + 1
self.set_length(l)
l = l + 2
2015-11-08 16:11:03 +01:00
set_internal( l , i)
return self
end
2015-11-07 23:54:47 +01:00
end