Tiny Basic Interpreter...
class TBinterpreter { ... boolean statement() {
int temp, test;
nexToken = '\0';
switch (Code.getCommand()) {
case cm_let:
if (!var()) {
error("Variable name expected");
return false;}
if (nexToken != '=') {
error("Equal expected");
return false;}
if (!expression()) {
error("Value expected");
return false;}
if (nexToken != '\0') {
error("Line end expected");
return false;}
temp = Stak.pop();
Vars.put((char)Stak.pop(),temp);
break;
...} // switch
return true;} // statement