Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Digital Mark λ ☕️ 🕹 👽
Digital Mark λ ☕️ 🕹 👽
@mdhughes@appdot.net  ·  activity timestamp 2 days ago

I wonder if I can port Eliza to my TinyBasicWeb?

  • Copy link
  • Flag this post
  • Block
Digital Mark λ ☕️ 🕹 👽
Digital Mark λ ☕️ 🕹 👽
@mdhughes@appdot.net  ·  activity timestamp yesterday

Decided I need FOR/NEXT loops, my minimalist scam of:
10 LET i=1
15 ?i
20 INC i
21 IF (i<10) THEN GOTO 15

is OK for a draw loop, but too frustrating for an actual data structure.

So now I'm arms-deep inside the interpreter again, and gotta figure out how I represent everything. Just about have it parsed, but it doesn't run yet.

Soundtrack: https://childrenofthecpu.bandcamp.com/album/back-to-b-a-s-i-c
#basic

Children of the CPU

Back to B.A.S.I.C., by Children of the CPU

12 track album
  • Copy link
  • Flag this comment
  • Block
Digital Mark λ ☕️ 🕹 👽
Digital Mark λ ☕️ 🕹 👽
@mdhughes@appdot.net  ·  activity timestamp yesterday

Working code, but can't publish yet. I'm going *crazy* waiting for things to work.
#cyberhole #basic #retrocomputing

READY
run "testfor.bas"
FOR LOOPS!
01234567
01234567
012345
0123
01
DONE
READY
list
06 PRINT "FOR LOOPS!"
10 FOR Y=9 TO 0 STEP -2
20 FOR X=0 TO Y
30 IF (X>=8) THEN  BREAK X
31 PRINT X;
40 NEXT X
45 PRINT
50 NEXT Y
95 PRINT "DONE"
99 END
READY run "testfor.bas" FOR LOOPS! 01234567 01234567 012345 0123 01 DONE READY list 06 PRINT "FOR LOOPS!" 10 FOR Y=9 TO 0 STEP -2 20 FOR X=0 TO Y 30 IF (X>=8) THEN BREAK X 31 PRINT X; 40 NEXT X 45 PRINT 50 NEXT Y 95 PRINT "DONE" 99 END
READY run "testfor.bas" FOR LOOPS! 01234567 01234567 012345 0123 01 DONE READY list 06 PRINT "FOR LOOPS!" 10 FOR Y=9 TO 0 STEP -2 20 FOR X=0 TO Y 30 IF (X>=8) THEN BREAK X 31 PRINT X; 40 NEXT X 45 PRINT 50 NEXT Y 95 PRINT "DONE" 99 END
  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct