Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding new commands to ZX BASIC
#4
boriel Wrote:Of course there are some core features missing I would like to add (but at the moment I'm not even living at my home!)
For example:
- ON ... GOTO/GOSUB (e.g. ON <expression> GOTO 100, 200, 300
I never used this in any BASIC dialect, but line numbers are obsolete now. I'm sure, you will make them work with labels too.
boriel Wrote:- SELECT ... CASE (equivalent of Switch in c)
Thats great. I missed this from your compiler
boriel Wrote:- More complex data strucrures
?
Linked Lists like:
Code:
Structure Spritedata
  posx as ubyte
  posy as ubyte
  hits as ubyte
  name as string
Endstructure
dim sprites(15) as spritedata
sprites.posx(0)=16
sprites.hits(7)=255
sprites.name(3)="Panzer"
At least what I understand as data structure.
boriel Wrote:etc. etc.
etc sounds good too Wink
boriel Wrote:These require syntactic changes, and I'm working hard to move them to the new parser (2.0 or 1.4) scheme.
New Parser scheme? Will be the old sources still compilable wirh 1.4 or 2.0?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)