// File: /workspace/github_cpp_makefile_star2_O3/navrajsaini[P]PL_Compiler_design_project/token.cpp
// Function: spellS[abi:cxx11](Symbol)
string spellS(Symbol s)
{
   switch (s)
   {
      case NUM: return "num"; break;
      case DIV: return "/"; break;
      case MOD: return "%"; break;
      case SEMICOLON: return ";"; break;
      case PLUS: return "+"; break;
      case MINUS: return "-"; break;
      case TIMES: return "*"; break;
      case DIVIDE: return "/"; break;
      case LEFTP: return "("; break;
      case RIGHTP: return ")"; break;

	 //the error handling and reporting symbols
      case BADNUM: return "Bad Number error"; break;
      case BADNAME: return "Bad Name error"; break;
      case NEWLINE: return "New Line error"; break;
      case NONAME: return "NONAME"; break;
      case ENDOFFILE: return "End of File"; break;
      case BADCHAR: return "Bad Character error"; break;
	 //The reserved words
      case Symbol::begin: return "begin"; break;
      case Symbol::end: return "end"; break;
      case const1: return "const"; break;
      case array: return "array"; break;
      case integer: return "integer"; break;
      case Boolean: return "Boolean"; break;
      case proc: return "proc"; break;
      case skip: return "skip"; break;
      case read: return "read"; break;
      case write: return "write"; break;
      case call: return "call"; break; 
      case if1: return "if"; break; 
      case do1: return "do"; break;
      case fi: return "fi"; break;
      case od: return "od"; break;
      case false1: return "false"; break;
      case true1: return "true"; break;
	 
      case Symbol::colon: return ":"; break;
      case Symbol::period: return "."; break;
      case Symbol::comma: return ","; break;
      case Symbol::rightB: return "["; break;
      case Symbol::leftB: return "]"; break;
      case Symbol::and1: return "&"; break;
      case Symbol::or1: return "|"; break;
      case Symbol::not1: return "~"; break;
      case Symbol::greater: return ">"; break;
      case Symbol::less: return "<"; break;
      case Symbol::equal: return "="; break;
      case closedS: return "[]"; break;
      case assign: return ":="; break;
      case arrow: return "->"; break;
	 //need to have it go from symbol to string...
      default: return "id"; break;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
addl $0xfffffeff, %esi       # imm = 0xFFFFFEFF
cmpl $0x2e, %esi
ja 0x4709
leaq 0xee56(%rip), %rax      # 0x13204
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0xef06(%rip), %rsi      # 0x132c4
leaq 0xef00(%rip), %rdx      # 0x132c5
jmp 0x4717
leaq 0xefa9(%rip), %rsi      # 0x1337a
leaq 0xefa4(%rip), %rdx      # 0x1337c
jmp 0x4717
leaq 0xef8e(%rip), %rsi      # 0x13372
leaq 0xef88(%rip), %rdx      # 0x13373
jmp 0x4717
leaq 0xf272(%rip), %rsi      # 0x13669
leaq 0xf26c(%rip), %rdx      # 0x1366a
jmp 0x4717
leaq 0xef71(%rip), %rsi      # 0x1337b
leaq 0xef6b(%rip), %rdx      # 0x1337c
jmp 0x4717
leaq 0xef3a(%rip), %rsi      # 0x13357
leaq 0xef35(%rip), %rdx      # 0x13359
jmp 0x4717
leaq 0xef40(%rip), %rsi      # 0x13370
leaq 0xef3a(%rip), %rdx      # 0x13371
jmp 0x4717
leaq 0xeee5(%rip), %rsi      # 0x13328
leaq 0xeee3(%rip), %rdx      # 0x1332d
jmp 0x4717
leaq 0xef27(%rip), %rsi      # 0x1337d
leaq 0xef22(%rip), %rdx      # 0x1337f
jmp 0x4717
leaq 0xf016(%rip), %rsi      # 0x1347f
leaq 0xf010(%rip), %rdx      # 0x13480
jmp 0x4717
leaq 0xf593(%rip), %rsi      # 0x13a0f
leaq 0xf58d(%rip), %rdx      # 0x13a10
jmp 0x4717
leaq 0xee3d(%rip), %rsi      # 0x132cc
leaq 0xee37(%rip), %rdx      # 0x132cd
jmp 0x4717
leaq 0xeedf(%rip), %rsi      # 0x13381
leaq 0xeed9(%rip), %rdx      # 0x13382
jmp 0x4717
leaq 0xee4c(%rip), %rsi      # 0x13301
leaq 0xee4b(%rip), %rdx      # 0x13307
jmp 0x4717
leaq 0xee06(%rip), %rsi      # 0x132ce
leaq 0xee00(%rip), %rdx      # 0x132cf
jmp 0x4717
leaq 0xeded(%rip), %rsi      # 0x132c8
leaq 0xede7(%rip), %rdx      # 0x132c9
jmp 0x4717
leaq 0xeb71(%rip), %rsi      # 0x1305f
leaq 0xeb6f(%rip), %rdx      # 0x13064
jmp 0x4717
leaq 0xee4c(%rip), %rsi      # 0x1334d
leaq 0xee49(%rip), %rdx      # 0x13351
jmp 0x4717
leaq 0xedcf(%rip), %rsi      # 0x132e3
leaq 0xedd6(%rip), %rdx      # 0x132f1
jmp 0x4717
leaq 0xeded(%rip), %rsi      # 0x13314
leaq 0xedf9(%rip), %rdx      # 0x13327
jmp 0x4717
leaq 0xedb8(%rip), %rsi      # 0x132f2
leaq 0xedbf(%rip), %rdx      # 0x13300
jmp 0x4717
leaq 0xed73(%rip), %rsi      # 0x132c0
leaq 0xed6f(%rip), %rdx      # 0x132c3
jmp 0x4717
leaq 0xed72(%rip), %rsi      # 0x132d2
leaq 0xed7b(%rip), %rdx      # 0x132e2
jmp 0x4717
leaq 0xedf0(%rip), %rsi      # 0x13363
leaq 0xedee(%rip), %rdx      # 0x13368
jmp 0x4717
leaq 0xeda8(%rip), %rsi      # 0x1332e
leaq 0xeda4(%rip), %rdx      # 0x13331
jmp 0x4717
leaq 0xeddf(%rip), %rsi      # 0x13378
leaq 0xedd9(%rip), %rdx      # 0x13379
jmp 0x4717
leaq 0xed8c(%rip), %rsi      # 0x13338
leaq 0xed8c(%rip), %rdx      # 0x1333f
jmp 0x4717
leaq 0xed81(%rip), %rsi      # 0x13340
leaq 0xed81(%rip), %rdx      # 0x13347
jmp 0x4717
leaq 0xecfe(%rip), %rsi      # 0x132d0
leaq 0xecf8(%rip), %rdx      # 0x132d1
jmp 0x4717
leaq 0xed23(%rip), %rsi      # 0x13308
leaq 0xed27(%rip), %rdx      # 0x13313
jmp 0x4717
leaq 0xed3a(%rip), %rsi      # 0x13332
leaq 0xed38(%rip), %rdx      # 0x13337
jmp 0x4717
leaq 0xecbf(%rip), %rsi      # 0x132ca
leaq 0xecb9(%rip), %rdx      # 0x132cb
jmp 0x4717
leaq 0xeca8(%rip), %rsi      # 0x132c6
leaq 0xeca2(%rip), %rdx      # 0x132c7
jmp 0x4717
leaq 0xed2f(%rip), %rsi      # 0x13360
leaq 0xed2a(%rip), %rdx      # 0x13362
jmp 0x4717
leaq 0xed25(%rip), %rsi      # 0x13369
leaq 0xed22(%rip), %rdx      # 0x1336d
jmp 0x4717
leaq 0xed17(%rip), %rsi      # 0x1336e
leaq 0xed11(%rip), %rdx      # 0x1336f
jmp 0x4717
leaq 0xe9bd(%rip), %rsi      # 0x13027
leaq 0xe9ba(%rip), %rdx      # 0x1302b
jmp 0x4717
leaq 0xecf9(%rip), %rsi      # 0x13376
leaq 0xecf3(%rip), %rdx      # 0x13377
jmp 0x4717
leaq 0xf0c7(%rip), %rsi      # 0x13757
leaq 0xf0c5(%rip), %rdx      # 0x1375c
jmp 0x4717
leaq 0xecde(%rip), %rsi      # 0x1337e
leaq 0xecd8(%rip), %rdx      # 0x1337f
jmp 0x4717
leaq 0xec98(%rip), %rsi      # 0x13348
leaq 0xec95(%rip), %rdx      # 0x1334c
jmp 0x4717
leaq 0xec9a(%rip), %rsi      # 0x1335a
leaq 0xec95(%rip), %rdx      # 0x1335c
jmp 0x4717
leaq 0xec8d(%rip), %rsi      # 0x1335d
leaq 0xec88(%rip), %rdx      # 0x1335f
jmp 0x4717
leaq 0xec94(%rip), %rsi      # 0x13374
leaq 0xec8e(%rip), %rdx      # 0x13375
jmp 0x4717
leaq 0xec62(%rip), %rsi      # 0x13352
leaq 0xec5f(%rip), %rdx      # 0x13356
jmp 0x4717
leaq 0xec80(%rip), %rsi      # 0x13380
leaq 0xec7b(%rip), %rdx      # 0x13382
jmp 0x4717
leaq 0xeaef(%rip), %rsi      # 0x131ff
leaq 0xeaea(%rip), %rdx      # 0x13201
movq %rbx, %rdi
callq 0x42ea
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq