s/display/frame_buffer/g

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2022-08-30 13:37:34 +02:00
parent 010460a230
commit edd0884f9d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@ class Interpreter
include Types
attr_reader :stack,
:display,
:frame_buffer,
:dictionary,
:version
@ -42,11 +42,11 @@ class Interpreter
@dictionary = dictionary
@stack = stack
initialize_display
initialize_frame_buffer
end
def initialize_display
@display = BitArray.new
def initialize_frame_buffer
@frame_buffer = BitArray.new
end
def run( input )

View file

@ -12,14 +12,14 @@ module RplLang
'Display',
'( -- ) erase display',
proc do
initialize_display
initialize_frame_buffer
end )
@dictionary.add_word( ['display→', 'display->'],
'Display',
'( -- pict ) put current display state on stack',
proc do
@stack << @display # FIXME: RplPict type
@stack << @frame_buffer # FIXME: RplPict type
end )
end
end