% z88dk-zx81bas -d 7 t/80-codegen//input/labels.bas
Input file:  t/80-codegen/input/labels.bas
Output file: t/80-codegen/input/labels.p
% z88dk-ucpp -lg -zI -Z -D__ZX81BAS__ -o "t/80-codegen/input/labels.i" "t/80-codegen/input/labels.pp"
Prog {
    auto_start: true
    auto_start_line: 0
    auto_start_label: ""
    increment: 10
    rem_invert: false
    fast_mode: false
    dfile_lines: [
    ]
    dfile_collapsed: false
    sysvars_data: [
    ]
    stmts: [
        RemStmt {
            location: t/80-codegen/input/labels.bas:2
            text: ""
            asm: [
                START_ASM:
                	PUBLIC VALUE1, VALUE2
                VALUE1 = 12
                VALUE2 EQU 13
                SHOW_BC:
                	RET
                
                .SET_BC
                	LD BC, 0
                	RET
                MESSAGE:	DEFM "HELLO"
                MOVE_MESSAGE:
                	LD HL, MESSAGE
                	LD DE, &MESSAGE_TARGET+6
                	LD BC, 5
                	LDIR
                	RET
                
                LINE_NUMBER:
                	LD BC, @START
                	RET
                
                START_ADDRESS:
                	LD BC, &SHOW_BC
                	RET
                END_ASM:
            ]
        }
        LabelStmt {
            location: t/80-codegen/input/labels.bas:37
            label: "START"
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:38
            items: [
                Expr:
                    BinaryExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:38
                        op: +
                        lhs: 
                            BinaryExpr {
                                type: Number
                                location: t/80-codegen/input/labels.bas:38
                                op: -
                                lhs: 
                                    BinaryExpr {
                                        type: Number
                                        location: t/80-codegen/input/labels.bas:38
                                        op: +
                                        lhs: 
                                            BinaryExpr {
                                                type: Number
                                                location: t/80-codegen/input/labels.bas:38
                                                op: +
                                                lhs: 
                                                    NumberExpr {
                                                        type: Number
                                                        location: t/80-codegen/input/labels.bas:38
                                                        value: 16509.000000
                                                    }
                                                rhs: 
                                                    NumberExpr {
                                                        type: Number
                                                        location: t/80-codegen/input/labels.bas:38
                                                        value: 5.000000
                                                    }
                                            }
                                        rhs: 
                                            LabelAddrRefExpr {
                                                type: Number
                                                location: t/80-codegen/input/labels.bas:38
                                                name: "END_ASM"
                                            }
                                    }
                                rhs: 
                                    LabelAddrRefExpr {
                                        type: Number
                                        location: t/80-codegen/input/labels.bas:38
                                        name: "START_ASM"
                                    }
                            }
                        rhs: 
                            NumberExpr {
                                type: Number
                                location: t/80-codegen/input/labels.bas:38
                                value: 1.000000
                            }
                    }
                Comma
                Expr:
                    LabelAddrRefExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:38
                        name: "START"
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:39
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:39
                        value: "10"
                    }
                Comma
                Expr:
                    BasicFuncCallExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:39
                        keyword: "USR"
                        args: [
                            LabelAddrRefExpr {
                                type: Number
                                location: t/80-codegen/input/labels.bas:39
                                name: "LINE_NUMBER"
                            }
                        ]
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:40
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:40
                        value: "16514"
                    }
                Comma
                Expr:
                    BasicFuncCallExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:40
                        keyword: "USR"
                        args: [
                            LabelAddrRefExpr {
                                type: Number
                                location: t/80-codegen/input/labels.bas:40
                                name: "START_ADDRESS"
                            }
                        ]
                    }
            ]
        }
        LetStmt {
            location: t/80-codegen/input/labels.bas:41
            lhs: 
                VariableExpr {
                    type: Number
                    location: t/80-codegen/input/labels.bas:41
                    name: "A"
                }
            rhs: 
                BasicFuncCallExpr {
                    type: Number
                    location: t/80-codegen/input/labels.bas:41
                    keyword: "USR"
                    args: [
                        LabelAddrRefExpr {
                            type: Number
                            location: t/80-codegen/input/labels.bas:41
                            name: "MOVE_MESSAGE"
                        }
                    ]
                }
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:42
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:42
                        value: "HELLO"
                    }
                Comma
            ]
        }
        LabelStmt {
            location: t/80-codegen/input/labels.bas:43
            label: "MESSAGE_TARGET"
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:44
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:44
                        value: "12345"
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:45
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:45
                        value: "16514"
                    }
                Comma
                Expr:
                    BasicFuncCallExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:45
                        keyword: "USR"
                        args: [
                            LabelAddrRefExpr {
                                type: Number
                                location: t/80-codegen/input/labels.bas:45
                                name: "SHOW_BC"
                            }
                        ]
                    }
            ]
        }
        PokewStmt {
            location: t/80-codegen/input/labels.bas:47
            address: 
                BinaryExpr {
                    type: Number
                    location: t/80-codegen/input/labels.bas:47
                    op: +
                    lhs: 
                        LabelAddrRefExpr {
                            type: Number
                            location: t/80-codegen/input/labels.bas:47
                            name: "SET_BC"
                        }
                    rhs: 
                        NumberExpr {
                            type: Number
                            location: t/80-codegen/input/labels.bas:47
                            value: 1.000000
                        }
                }
            value: 
                NumberExpr {
                    type: Number
                    location: t/80-codegen/input/labels.bas:47
                    value: 12345.000000
                }
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:48
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:48
                        value: "12345"
                    }
                Comma
                Expr:
                    BasicFuncCallExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:48
                        keyword: "USR"
                        args: [
                            LabelAddrRefExpr {
                                type: Number
                                location: t/80-codegen/input/labels.bas:48
                                name: "SET_BC"
                            }
                        ]
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:50
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:50
                        value: "12"
                    }
                Comma
                Expr:
                    LabelAddrRefExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:50
                        name: "VALUE1"
                    }
            ]
        }
        PrintStmt {
            location: t/80-codegen/input/labels.bas:51
            items: [
                Expr:
                    StringLiteralExpr {
                        type: String
                        location: t/80-codegen/input/labels.bas:51
                        value: "13"
                    }
                Comma
                Expr:
                    LabelAddrRefExpr {
                        type: Number
                        location: t/80-codegen/input/labels.bas:51
                        name: "VALUE2"
                    }
            ]
        }
    ]
    pragma_vars: [
    ]
}
