BleuLlama / TinyBasicPlus

A C implementation of Tiny Basic, with a focus on support for Arduino
406 stars 118 forks source link

suggestions for improvement #48

Open Volhout opened 6 years ago

Volhout commented 6 years ago

Dear BleuLlama,

Looking at your V0.15 I have 3 bug fixes for you, and one suggestion

Bug fixes: 1/ fix backspace issue on line 753 replace printmsg(backspacemsg); with printmsgNoNL(backspacemsg);

2/ fix delay command (allows multiple commands on one line in the basic program) on line 1275 replace goto execnextline; with goto run_next_statement;

3/ fix strange response INPUT when faulty key entry is given move following:

             txtpos = tmptxtpos;

from: line 1492 to: a new location in between line 1488 and 1489

Suggestion for improvement: add possibility to abbreviate commands in the basic program (i.e. use n. for next, dw. for dwrite) on line 593 insert following code else if(txtpos[i] == '.') { txtpos += i+1; // Advance the pointer to following the keyword ignore_blanks(); return; }

Regards,

Volhout

Volhout commented 6 years ago

Added 3'rd fix