aiken-lang 1.0.22-alpha

The Aiken compiler
Documentation
---
source: crates/aiken-lang/src/parser/expr/int.rs
description: "Code:\n\n{\n  let i = 1_234_567\n  let j = 1_000_000\n  let k = -10_000\n}\n"
---
Sequence {
    location: 4..59,
    expressions: [
        Assignment {
            location: 4..21,
            value: UInt {
                location: 12..21,
                value: "1234567",
                base: Decimal {
                    numeric_underscore: true,
                },
            },
            pattern: Var {
                location: 8..9,
                name: "i",
            },
            kind: Let,
            annotation: None,
        },
        Assignment {
            location: 24..41,
            value: UInt {
                location: 32..41,
                value: "1000000",
                base: Decimal {
                    numeric_underscore: true,
                },
            },
            pattern: Var {
                location: 28..29,
                name: "j",
            },
            kind: Let,
            annotation: None,
        },
        Assignment {
            location: 44..59,
            value: UnOp {
                op: Negate,
                location: 52..59,
                value: UInt {
                    location: 53..59,
                    value: "10000",
                    base: Decimal {
                        numeric_underscore: true,
                    },
                },
            },
            pattern: Var {
                location: 48..49,
                name: "k",
            },
            kind: Let,
            annotation: None,
        },
    ],
}