RodrigoDornelles / 3bc-lang

Low-level language, tiny virtual machine, minimal runtime, intermediate representation, embeddable, easy for beginners. (Friendly Punched cards)
https://3bc-lang.org
GNU General Public License v3.0
238 stars 26 forks source link

support graphical user interface #250

Open RodrigoDornelles opened 2 years ago

RodrigoDornelles commented 2 years ago

An interesting detail would be to abstract graphical libraries, and offer basic and generic support for GUI's

RodrigoDornelles commented 2 years ago
mode nill 0d6
chnl nill 0d4 # canal 6
aloc 0x01 'O' # init of dialog two butons
aloc 0x02 'l'
aloc 0x03 'a'
aloc 0x04 '!'
aloc 0x05 '\n' # buton 1
aloc 0x06 'b'
aloc 0x07 'y'
aloc 0x08 'e'
aloc 0x09 '\n' # buton 2
aloc 0x0A '\n' # end
muse 0x01 0b01 # define address 01 as dialog

mode nill 0d8
pull 0x01 nill # show dialog and get response