// File: /workspace/github_cpp_makefile_star2_O1/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 0x2b42
leaq 0xb0(%rsp), %rdi
movq %r14, %rsi
callq 0x2a54
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d90
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 0x2a7c
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2de3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x28(%rsp), %rdx
movq %rdx, %rcx
subq $0x1, %rcx
jb 0x30d9
movq 0x20(%rsp), %rsi
cmpb $0x3a, (%rsi,%rcx)
jne 0x2ed8
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 0x2e6f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a7c
leaq 0x68(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x2ea4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b2e
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x2924
movq -0x20(%rbx), %rdi
cmpq %r13, %rdi
je 0x3078
movq 0x78(%rsp), %rsi
jmp 0x3070
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x30ea
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 0x2b42
leaq 0xd8(%rsp), %rsi
callq 0x31ac
movl %eax, 0x40(%rsp)
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2f6b
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x21e0
movl 0x40(%rsp), %eax
cmpl $0x7, %eax
ja 0x2fb8
movl $0x8a, %ecx
btl %eax, %ecx
jae 0x2fb8
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a7c
leaq 0x48(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2fb8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a7c
leaq 0x70(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
leaq 0x10(%rsp), %r15
cmpq %r15, %rdi
je 0x2ff2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq %rsp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2a7c
leaq 0x90(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x2230
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x302a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x8(%rbx), %rdi
addq $-0x18, %rdi
leaq 0x40(%rsp), %rsi
callq 0x3b98
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3059
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x30(%rsp), %rbp
je 0x3078
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x308f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21e0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x30a6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30c7
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 0x22ed(%rip), %rdi      # 0x53cd
movq %rcx, %rsi
xorl %eax, %eax
callq 0x2280
movl $0x8, %edi
callq 0x2110
leaq 0x20f5(%rip), %rcx      # 0x51f0
movq %rcx, (%rax)
movq 0x4e83(%rip), %rsi      # 0x7f88
movq %rax, %rdi
xorl %edx, %edx
callq 0x22e0
jmp 0x314a
jmp 0x314a
jmp 0x314a
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x314d
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x21e0
jmp 0x314d
jmp 0x313b
jmp 0x313b
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3b58
jmp 0x316b
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3bc2
jmp 0x316b
jmp 0x3168
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
jmp 0x3193
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3187
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21e0
leaq 0xc0(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x31a3
movq (%r15), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x22f0
nop