// File: /workspace/github_cpp_makefile_star2_O1/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 0x46f9
leaq 0xee66(%rip), %rax      # 0x13204
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0xef16(%rip), %rsi      # 0x132c4
leaq 0xef10(%rip), %rdx      # 0x132c5
jmp 0x4707
leaq 0xefb9(%rip), %rsi      # 0x1337a
leaq 0xefb4(%rip), %rdx      # 0x1337c
jmp 0x4707
leaq 0xef9e(%rip), %rsi      # 0x13372
leaq 0xef98(%rip), %rdx      # 0x13373
jmp 0x4707
leaq 0xf282(%rip), %rsi      # 0x13669
leaq 0xf27c(%rip), %rdx      # 0x1366a
jmp 0x4707
leaq 0xef81(%rip), %rsi      # 0x1337b
leaq 0xef7b(%rip), %rdx      # 0x1337c
jmp 0x4707
leaq 0xef4a(%rip), %rsi      # 0x13357
leaq 0xef45(%rip), %rdx      # 0x13359
jmp 0x4707
leaq 0xef50(%rip), %rsi      # 0x13370
leaq 0xef4a(%rip), %rdx      # 0x13371
jmp 0x4707
leaq 0xeef5(%rip), %rsi      # 0x13328
leaq 0xeef3(%rip), %rdx      # 0x1332d
jmp 0x4707
leaq 0xef37(%rip), %rsi      # 0x1337d
leaq 0xef32(%rip), %rdx      # 0x1337f
jmp 0x4707
leaq 0xf026(%rip), %rsi      # 0x1347f
leaq 0xf020(%rip), %rdx      # 0x13480
jmp 0x4707
leaq 0xf5a3(%rip), %rsi      # 0x13a0f
leaq 0xf59d(%rip), %rdx      # 0x13a10
jmp 0x4707
leaq 0xee4d(%rip), %rsi      # 0x132cc
leaq 0xee47(%rip), %rdx      # 0x132cd
jmp 0x4707
leaq 0xeeef(%rip), %rsi      # 0x13381
leaq 0xeee9(%rip), %rdx      # 0x13382
jmp 0x4707
leaq 0xee5c(%rip), %rsi      # 0x13301
leaq 0xee5b(%rip), %rdx      # 0x13307
jmp 0x4707
leaq 0xee16(%rip), %rsi      # 0x132ce
leaq 0xee10(%rip), %rdx      # 0x132cf
jmp 0x4707
leaq 0xedfd(%rip), %rsi      # 0x132c8
leaq 0xedf7(%rip), %rdx      # 0x132c9
jmp 0x4707
leaq 0xeb81(%rip), %rsi      # 0x1305f
leaq 0xeb7f(%rip), %rdx      # 0x13064
jmp 0x4707
leaq 0xee5c(%rip), %rsi      # 0x1334d
leaq 0xee59(%rip), %rdx      # 0x13351
jmp 0x4707
leaq 0xeddf(%rip), %rsi      # 0x132e3
leaq 0xede6(%rip), %rdx      # 0x132f1
jmp 0x4707
leaq 0xedfd(%rip), %rsi      # 0x13314
leaq 0xee09(%rip), %rdx      # 0x13327
jmp 0x4707
leaq 0xedc8(%rip), %rsi      # 0x132f2
leaq 0xedcf(%rip), %rdx      # 0x13300
jmp 0x4707
leaq 0xed83(%rip), %rsi      # 0x132c0
leaq 0xed7f(%rip), %rdx      # 0x132c3
jmp 0x4707
leaq 0xed82(%rip), %rsi      # 0x132d2
leaq 0xed8b(%rip), %rdx      # 0x132e2
jmp 0x4707
leaq 0xee00(%rip), %rsi      # 0x13363
leaq 0xedfe(%rip), %rdx      # 0x13368
jmp 0x4707
leaq 0xedb8(%rip), %rsi      # 0x1332e
leaq 0xedb4(%rip), %rdx      # 0x13331
jmp 0x4707
leaq 0xedef(%rip), %rsi      # 0x13378
leaq 0xede9(%rip), %rdx      # 0x13379
jmp 0x4707
leaq 0xed9c(%rip), %rsi      # 0x13338
leaq 0xed9c(%rip), %rdx      # 0x1333f
jmp 0x4707
leaq 0xed91(%rip), %rsi      # 0x13340
leaq 0xed91(%rip), %rdx      # 0x13347
jmp 0x4707
leaq 0xed0e(%rip), %rsi      # 0x132d0
leaq 0xed08(%rip), %rdx      # 0x132d1
jmp 0x4707
leaq 0xed33(%rip), %rsi      # 0x13308
leaq 0xed37(%rip), %rdx      # 0x13313
jmp 0x4707
leaq 0xed4a(%rip), %rsi      # 0x13332
leaq 0xed48(%rip), %rdx      # 0x13337
jmp 0x4707
leaq 0xeccf(%rip), %rsi      # 0x132ca
leaq 0xecc9(%rip), %rdx      # 0x132cb
jmp 0x4707
leaq 0xecb8(%rip), %rsi      # 0x132c6
leaq 0xecb2(%rip), %rdx      # 0x132c7
jmp 0x4707
leaq 0xed3f(%rip), %rsi      # 0x13360
leaq 0xed3a(%rip), %rdx      # 0x13362
jmp 0x4707
leaq 0xed35(%rip), %rsi      # 0x13369
leaq 0xed32(%rip), %rdx      # 0x1336d
jmp 0x4707
leaq 0xed27(%rip), %rsi      # 0x1336e
leaq 0xed21(%rip), %rdx      # 0x1336f
jmp 0x4707
leaq 0xe9cd(%rip), %rsi      # 0x13027
leaq 0xe9ca(%rip), %rdx      # 0x1302b
jmp 0x4707
leaq 0xed09(%rip), %rsi      # 0x13376
leaq 0xed03(%rip), %rdx      # 0x13377
jmp 0x4707
leaq 0xf0d7(%rip), %rsi      # 0x13757
leaq 0xf0d5(%rip), %rdx      # 0x1375c
jmp 0x4707
leaq 0xecee(%rip), %rsi      # 0x1337e
leaq 0xece8(%rip), %rdx      # 0x1337f
jmp 0x4707
leaq 0xeca8(%rip), %rsi      # 0x13348
leaq 0xeca5(%rip), %rdx      # 0x1334c
jmp 0x4707
leaq 0xecaa(%rip), %rsi      # 0x1335a
leaq 0xeca5(%rip), %rdx      # 0x1335c
jmp 0x4707
leaq 0xec9d(%rip), %rsi      # 0x1335d
leaq 0xec98(%rip), %rdx      # 0x1335f
jmp 0x4707
leaq 0xeca4(%rip), %rsi      # 0x13374
leaq 0xec9e(%rip), %rdx      # 0x13375
jmp 0x4707
leaq 0xec72(%rip), %rsi      # 0x13352
leaq 0xec6f(%rip), %rdx      # 0x13356
jmp 0x4707
leaq 0xec90(%rip), %rsi      # 0x13380
leaq 0xec8b(%rip), %rdx      # 0x13382
jmp 0x4707
leaq 0xeaff(%rip), %rsi      # 0x131ff
leaq 0xeafa(%rip), %rdx      # 0x13201
movq %rbx, %rdi
callq 0x42dc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq