anonymous / gist:afffcce8c81b31c8f1dc secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:afffcce8c81b31c8f1dc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
public class Command {
static final int CMD_LET = 0;
static final int CMD_DOC = 1;
static final int CMD_PRINT = 2;
static final int CMD_DO = 3;
static final int CMD_HISTORY = 4;
static final int CMD_END = 5;
String s;
public Command(String s){
this.s = s;
}
public int getCommand(){
if();
return(CMD_LET);
if()
return(CMD_DOC);
if()
return(CMD_PRINT);
if()
return(CMD_DO);
if()
return(CMD_HISTORY);
if()
return(CMD_END);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.