rubyx/lib/soml/parfait/word.soml

21 lines
320 B
Plaintext
Raw Normal View History

2015-11-08 00:54:47 +02:00
class Word < Object
2015-11-10 19:08:48 +02:00
int char_at(int index)
index = index + 2
return get_internal(index)
2015-11-08 17:11:03 +02:00
end
2015-11-10 19:08:48 +02: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 17:11:03 +02:00
set_internal( l , i)
return self
end
2015-11-08 00:54:47 +02:00
end