// File: CoinXu[P]reviser-compiler/src/tokenizer.cpp
// Function: reviser::compiler::Tokenizer::Tokenizer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Tokenizer::Tokenizer(string input): input(input), message("tokenizer") {
  peek = input.at(0);
  pos = 0;
  line = 1;
  column = 0;

  current.type = TOKEN_CODE_START;
  current.text = "";
  current.start_line = line;
  current.end_line = line;
  current.column_start = column;
  current.column_end = column;
  current.pos_start = pos;
  current.pos_end = pos;

  type.push_back(ReservedWordMap[RESERVED_BOOL]);
  type.push_back(ReservedWordMap[RESERVED_FLOAT]);
  type.push_back(ReservedWordMap[RESERVED_DOUBLE]);
  type.push_back(ReservedWordMap[RESERVED_INT32]);
  type.push_back(ReservedWordMap[RESERVED_INT64]);
  type.push_back(ReservedWordMap[RESERVED_UINT32]);
  type.push_back(ReservedWordMap[RESERVED_UINT64]);
  type.push_back(ReservedWordMap[RESERVED_STRING]);
  type.push_back(ReservedWordMap[RESERVED_NULL]);

  decorater.push_back(ReservedWordMap[RESERVED_OPTIONAL]);
  decorater.push_back(ReservedWordMap[RESERVED_REQUIRED]);

  NextChar();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rsi, -0xa8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x88(%rbp)
movq %rdi, %rax
movq %rax, -0xa0(%rbp)
callq 0x991c0
movq -0x88(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x98(%rbp)
callq 0xa0c50
movq -0x88(%rbp), %rdi
addq $0x38, %rdi
movq %rdi, -0x90(%rbp)
callq 0xa0c50
movq -0x88(%rbp), %rax
addq $0x50, %rax
movq %rax, -0x80(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x99850
movq -0x78(%rbp), %rdx
leaq 0x51b52(%rip), %rsi     # 0xff7db
leaq -0x30(%rbp), %rdi
callq 0x99640
jmp 0xadc94
movq -0x80(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xa62a0
jmp 0xadca3
leaq -0x30(%rbp), %rdi
callq 0x992c0
leaq -0x31(%rbp), %rdi
callq 0x994f0
movq -0xa0(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0xc0(%rbp)
callq 0xafbb0
movq -0xa0(%rbp), %rdi
addq $0xb8, %rdi
movq %rdi, -0xb8(%rbp)
callq 0xafbb0
movq -0xa8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x998c0
movq %rax, -0xb0(%rbp)
jmp 0xadcff
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rax
movb (%rax), %al
movb %al, 0xf8(%rdi)
movl $0x0, 0xfc(%rdi)
movl $0x1, 0x100(%rdi)
movl $0x0, 0x104(%rdi)
movl $0x8, 0x78(%rdi)
subq $-0x80, %rdi
leaq 0x52e6a(%rip), %rsi     # 0x100baf
callq 0x99630
jmp 0xadd4c
movq -0xa0(%rbp), %rax
movl 0x100(%rax), %ecx
movl %ecx, 0xa0(%rax)
movl 0x100(%rax), %ecx
movl %ecx, 0xa4(%rax)
movl 0x104(%rax), %ecx
movl %ecx, 0xa8(%rax)
movl 0x104(%rax), %ecx
movl %ecx, 0xac(%rax)
movl 0xfc(%rax), %ecx
movl %ecx, 0xb0(%rax)
movl 0xfc(%rax), %ecx
movl %ecx, 0xb4(%rax)
addq $0x20, %rax
movq %rax, -0xd0(%rbp)
movl $0x4, -0x48(%rbp)
leaq 0x82c8c(%rip), %rdi     # 0x130a40
leaq -0x48(%rbp), %rsi
callq 0xa48c0
movq %rax, -0xc8(%rbp)
jmp 0xaddc6
movq -0xc8(%rbp), %rsi
movq -0xd0(%rbp), %rdi
callq 0xa1220
jmp 0xadddb
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0xe0(%rbp)
movl $0x5, -0x4c(%rbp)
leaq 0x82c45(%rip), %rdi     # 0x130a40
leaq -0x4c(%rbp), %rsi
callq 0xa48c0
movq %rax, -0xd8(%rbp)
jmp 0xade0d
movq -0xd8(%rbp), %rsi
movq -0xe0(%rbp), %rdi
callq 0xa1220
jmp 0xade22
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0xf0(%rbp)
movl $0x6, -0x50(%rbp)
leaq 0x82bfe(%rip), %rdi     # 0x130a40
leaq -0x50(%rbp), %rsi
callq 0xa48c0
movq %rax, -0xe8(%rbp)
jmp 0xade54
movq -0xe8(%rbp), %rsi
movq -0xf0(%rbp), %rdi
callq 0xa1220
jmp 0xade69
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x100(%rbp)
movl $0x7, -0x54(%rbp)
leaq 0x82bb7(%rip), %rdi     # 0x130a40
leaq -0x54(%rbp), %rsi
callq 0xa48c0
movq %rax, -0xf8(%rbp)
jmp 0xade9b
movq -0xf8(%rbp), %rsi
movq -0x100(%rbp), %rdi
callq 0xa1220
jmp 0xadeb0
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x110(%rbp)
movl $0x8, -0x58(%rbp)
leaq 0x82b70(%rip), %rdi     # 0x130a40
leaq -0x58(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x108(%rbp)
jmp 0xadee2
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rdi
callq 0xa1220
jmp 0xadef7
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x120(%rbp)
movl $0x9, -0x5c(%rbp)
leaq 0x82b29(%rip), %rdi     # 0x130a40
leaq -0x5c(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x118(%rbp)
jmp 0xadf29
movq -0x118(%rbp), %rsi
movq -0x120(%rbp), %rdi
callq 0xa1220
jmp 0xadf3e
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x130(%rbp)
movl $0xa, -0x60(%rbp)
leaq 0x82ae2(%rip), %rdi     # 0x130a40
leaq -0x60(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x128(%rbp)
jmp 0xadf70
movq -0x128(%rbp), %rsi
movq -0x130(%rbp), %rdi
callq 0xa1220
jmp 0xadf85
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x140(%rbp)
movl $0xb, -0x64(%rbp)
leaq 0x82a9b(%rip), %rdi     # 0x130a40
leaq -0x64(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x138(%rbp)
jmp 0xadfb7
movq -0x138(%rbp), %rsi
movq -0x140(%rbp), %rdi
callq 0xa1220
jmp 0xadfcc
movq -0xa0(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x150(%rbp)
movl $0xc, -0x68(%rbp)
leaq 0x82a54(%rip), %rdi     # 0x130a40
leaq -0x68(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x148(%rbp)
jmp 0xadffe
movq -0x148(%rbp), %rsi
movq -0x150(%rbp), %rdi
callq 0xa1220
jmp 0xae013
movq -0xa0(%rbp), %rax
addq $0x38, %rax
movq %rax, -0x160(%rbp)
movl $0xd, -0x6c(%rbp)
leaq 0x82a0d(%rip), %rdi     # 0x130a40
leaq -0x6c(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x158(%rbp)
jmp 0xae045
movq -0x158(%rbp), %rsi
movq -0x160(%rbp), %rdi
callq 0xa1220
jmp 0xae05a
movq -0xa0(%rbp), %rax
addq $0x38, %rax
movq %rax, -0x170(%rbp)
movl $0xe, -0x70(%rbp)
leaq 0x829c6(%rip), %rdi     # 0x130a40
leaq -0x70(%rbp), %rsi
callq 0xa48c0
movq %rax, -0x168(%rbp)
jmp 0xae08c
movq -0x168(%rbp), %rsi
movq -0x170(%rbp), %rdi
callq 0xa1220
jmp 0xae0a1
movq -0xa0(%rbp), %rdi
callq 0xae140
jmp 0xae0af
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xae0db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x992c0
leaq -0x31(%rbp), %rdi
callq 0x994f0
jmp 0xae113
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0xa0bf0
movq -0xc0(%rbp), %rdi
callq 0xa0bf0
movq -0x80(%rbp), %rdi
callq 0xa62d0
movq -0x90(%rbp), %rdi
callq 0xa0c70
movq -0x98(%rbp), %rdi
callq 0xa0c70
movq -0x88(%rbp), %rdi
callq 0x992c0
movq -0x40(%rbp), %rdi
callq 0x99840