// File: /workspace/github_cpp_makefile_star2_O3/danfai[P]dboc/parser.cpp
// Function: Parser::parseLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Parser::parseLine(std::string line)
{
    StringTokenizer t(line);
    std::string t1;
    t1 = t.getString();
    if(t1.at(t1.size()-1) == ':') {
        // New class
        Class c;
        c.className = t1.substr(0, t1.size()-1);
        c.tableName = t.getString();
        //TODO: no-version, ...
        this->classes.push_back(c);
    } else {
        if(this->classes.size() == 0) {
            throw "Class identifier has to be set before column declarations";
        }
        // column
        Field f;
        f.type = getType(t1);
        if(f.type == Field::c || f.type == Field::p || f.type == Field::e) {
            f.additionalType = t.getString();
        }
        f.fieldName = t.getString();
        f.databaseName = t.getString();
        /*
        std::string s = t.getString();
        if(s.size() > 0) {
            //TODO: Relation
        }*/
        this->classes.back().fields.push_back(f);
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x2b5a
leaq 0xb0(%rsp), %rdi
movq %r14, %rsi
callq 0x2a58
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2dac
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x40(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a80
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2dff
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x28(%rsp), %rdx
movq %rdx, %rcx
subq $0x1, %rcx
jb 0x30f5
movq 0x20(%rsp), %rsi
cmpb $0x3a, (%rsi,%rcx)
jne 0x2ef4
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movq %rax, 0x20(%r13)
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
xorl %edx, %edx
callq 0x21f0
leaq 0x48(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x10(%rsp), %r15
cmpq %r15, %rdi
je 0x2e8b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a80
leaq 0x68(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x2ec0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b4c
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x2922
movq -0x20(%rbx), %rdi
cmpq %r13, %rdi
je 0x3094
movq 0x78(%rsp), %rsi
jmp 0x308c
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x3108
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x2b5a
leaq 0xd8(%rsp), %rsi
callq 0x31ca
movl %eax, 0x40(%rsp)
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2f8b
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x21e0
movl 0x40(%rsp), %eax
cmpl $0x7, %eax
ja 0x2fd4
movl $0x8a, %ecx
btl %eax, %ecx
jae 0x2fd4
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a80
leaq 0x48(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2fd4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a80
leaq 0x70(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x10(%rsp), %r15
cmpq %r15, %rdi
je 0x300e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a80
leaq 0x90(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x3046
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x8(%rbx), %rdi
addq $-0x18, %rdi
leaq 0x40(%rsp), %rsi
callq 0x3bb6
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3075
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x30(%rsp), %rbp
je 0x3094
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x30ab
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x30c2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30e3
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21e0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x22d1(%rip), %rdi      # 0x53cd
movq %rcx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2280
movl $0x8, %edi
callq 0x2110
leaq 0x20d7(%rip), %rcx      # 0x51f0
movq %rcx, (%rax)
movq 0x4e65(%rip), %rsi      # 0x7f88
movq %rax, %rdi
xorl %edx, %edx
callq 0x22e0
jmp 0x3168
jmp 0x3168
jmp 0x3168
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x316b
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x316b
jmp 0x3159
jmp 0x3159
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3b76
jmp 0x3189
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3be0
jmp 0x3189
jmp 0x3186
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
jmp 0x31b1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x31a5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0xc0(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x31c1
movq (%r15), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x22f0
nop