richpl / PyBasic

Simple interactive BASIC interpreter written in Python
GNU General Public License v3.0
170 stars 46 forks source link

File io and restore documentation #39

Closed RetiredWizard closed 3 years ago

richpl commented 3 years ago

Excellent job @RetiredWizard, really appreciate that. I'll get working on adding the IF-THEN-GOSUB functionality in a bit.

In the meantime, I've been trying to port ELIZA but it looks like I need to add a string concatenation function. Something else on my list.

richpl commented 3 years ago

Looks like I don't need to add string concatenation. It was working using + anyway. I had to use a debugger to figure out why, but because the Python code just adds the operands, it either adds the values if they are numerals or concatenates them if they are strings. Only Python duck typing would give me this for free!