somni 0.2.0

Somni scripting language and VM
Documentation
Program {
    items: [
        Function(
            Function {
                fn_token: Token {
                    kind: Identifier,
                    location: Location {
                        start: 0,
                        end: 2,
                    },
                },
                name: Token {
                    kind: Identifier,
                    location: Location {
                        start: 3,
                        end: 6,
                    },
                },
                opening_paren: Token {
                    kind: Symbol,
                    location: Location {
                        start: 6,
                        end: 7,
                    },
                },
                arguments: [
                    FunctionArgument {
                        name: Token {
                            kind: Identifier,
                            location: Location {
                                start: 7,
                                end: 8,
                            },
                        },
                        colon: Token {
                            kind: Symbol,
                            location: Location {
                                start: 8,
                                end: 9,
                            },
                        },
                        reference_token: None,
                        arg_type: TypeHint {
                            type_name: Token {
                                kind: Identifier,
                                location: Location {
                                    start: 10,
                                    end: 13,
                                },
                            },
                        },
                    },
                ],
                closing_paren: Token {
                    kind: Symbol,
                    location: Location {
                        start: 13,
                        end: 14,
                    },
                },
                return_decl: Some(
                    ReturnDecl {
                        return_token: Token {
                            kind: Symbol,
                            location: Location {
                                start: 15,
                                end: 17,
                            },
                        },
                        return_type: TypeHint {
                            type_name: Token {
                                kind: Identifier,
                                location: Location {
                                    start: 18,
                                    end: 21,
                                },
                            },
                        },
                    },
                ),
                body: Body {
                    opening_brace: Token {
                        kind: Symbol,
                        location: Location {
                            start: 22,
                            end: 23,
                        },
                    },
                    statements: [
                        Continue(
                            Continue {
                                continue_token: Token {
                                    kind: Identifier,
                                    location: Location {
                                        start: 28,
                                        end: 36,
                                    },
                                },
                                semicolon: Token {
                                    kind: Symbol,
                                    location: Location {
                                        start: 36,
                                        end: 37,
                                    },
                                },
                            },
                        ),
                        ImplicitReturn(
                            Literal {
                                value: Literal {
                                    value: Integer(
                                        1,
                                    ),
                                    location: Location {
                                        start: 42,
                                        end: 43,
                                    },
                                },
                            },
                        ),
                    ],
                    closing_brace: Token {
                        kind: Symbol,
                        location: Location {
                            start: 44,
                            end: 45,
                        },
                    },
                },
            },
        ),
    ],
}