// File: /workspace/github_cpp_makefile_star2_O2/ps-george[P]ansi_c_compiler/src/lexer/lexer_main.cpp
// Function: main
int main() {
  fprintf(stdout, "[\n");
  std::string Class;
  int tokens = 0;
  while (1) {
    yytokentype type = (yytokentype)yylex();
    if (!type) {
      break;
    }
    tokens++;
    Class = classname(type);
    // Replace 
    fprintf(stdout, "\t{\n\t\t\"Text\": %s,\n\t\t\"Class\": %s,\n\t\t\"StreamLine\": %s,\n\t\t\"SourceFile\": %s,\n\t\t\"SourceLine\": %s,\n\t\t\"SourceCol\": %s\n\t},\n",
            quote(escape_chars(*yylval.raw)).c_str(),
            quote(Class).c_str(),
            std::to_string(yylineno).c_str(),
            quote(yylfile).c_str(),
            std::to_string(yylsourcelino).c_str(),
            std::to_string(yylcolno).c_str());
  }
  fprintf(stdout, "\t{}\n]\n");
  fprintf(stderr, "Number of tokens: %d", tokens);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq 0x7866(%rip), %rax      # 0x9fa8
movq (%rax), %rcx
leaq 0x3a2a(%rip), %rdi      # 0x6176
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x2240
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xb8(%rsp), %rbx
leaq 0x18(%rsp), %r15
leaq 0x118(%rsp), %r13
leaq 0xf8(%rsp), %rbp
xorl %r14d, %r14d
callq 0x2c74
testl %eax, %eax
je 0x2926
movq %rbx, %rdi
movl %eax, %esi
callq 0x2604
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2278
movq 0x77ef(%rip), %rax      # 0x9fa8
movq (%rax), %r12
movq 0x79ad(%rip), %rsi      # 0xa170
movq %r13, %rdi
callq 0x24d8
movq %rbx, %rdi
movq %r13, %rsi
callq 0x247e
movq 0xb8(%rsp), %r13
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2180
leaq 0x98(%rsp), %rdi
movq %rbp, %rsi
callq 0x247e
movq 0x98(%rsp), %rbp
leaq 0x7950(%rip), %rax      # 0xa158
movl (%rax), %esi
leaq 0x78(%rsp), %rdi
callq 0x2a1b
movq %r13, 0x10(%rsp)
movq 0x78(%rsp), %r13
leaq 0xd8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7950(%rip), %rsi      # 0xa180
callq 0x2180
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x247e
movq 0x58(%rsp), %rbx
movl 0x78ff(%rip), %esi      # 0xa14c
leaq 0x38(%rsp), %rdi
callq 0x2a1b
movq %r12, %r15
movl %r14d, 0xc(%rsp)
movq 0x38(%rsp), %r14
movl 0x78de(%rip), %esi      # 0xa148
leaq 0x138(%rsp), %r12
movq %r12, %rdi
callq 0x2a1b
movq %r15, %rdi
leaq 0x38f5(%rip), %rsi      # 0x6179
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
movq %r13, %r8
movq %rbx, %r9
xorl %eax, %eax
pushq 0x138(%rsp)
pushq %r14
callq 0x2190
popq %rcx
popq %rdx
movq %r12, %rdi
callq 0x2278
leaq 0x38(%rsp), %rdi
callq 0x2278
leaq 0x58(%rsp), %rdi
callq 0x2278
leaq 0xd8(%rsp), %rdi
callq 0x2278
leaq 0x78(%rsp), %rdi
callq 0x2278
leaq 0x98(%rsp), %rdi
callq 0x2278
leaq 0xf8(%rsp), %rbp
movq %rbp, %rdi
callq 0x2278
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2278
leaq 0x118(%rsp), %r13
movq %r13, %rdi
callq 0x2278
movl 0xc(%rsp), %r14d
incl %r14d
leaq 0x18(%rsp), %r15
jmp 0x2788
movq 0x767b(%rip), %rax      # 0x9fa8
movq (%rax), %rcx
leaq 0x38b5(%rip), %rdi      # 0x61ec
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
callq 0x2240
movq 0x7687(%rip), %rax      # 0x9fd0
movq (%rax), %rdi
leaq 0x38a0(%rip), %rsi      # 0x61f3
movl %r14d, %edx
xorl %eax, %eax
callq 0x2190
leaq 0x18(%rsp), %rdi
callq 0x2278
xorl %eax, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2278
jmp 0x298d
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2278
jmp 0x299c
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x2278
jmp 0x29b3
movq %rax, %rbx
jmp 0x29bd
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x2278
leaq 0x98(%rsp), %rdi
callq 0x2278
leaq 0xf8(%rsp), %rdi
callq 0x2278
leaq 0xb8(%rsp), %rdi
callq 0x2278
leaq 0x118(%rsp), %rdi
callq 0x2278
jmp 0x2a09
movq %rax, %rbx
jmp 0x29d7
movq %rax, %rbx
jmp 0x29ca
jmp 0x2a06
movq %rax, %rbx
jmp 0x29e4
jmp 0x2a06
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2278
movq %rbx, %rdi
callq 0x2200