ASPL لباتASPL 0.7.0

Search documentation

Search starts with current English documentation · ASPL 0.7.0

Enter a complete name such as read_line, or words about a topic.

    العربية
    Source files

    Open one UTF-8 .aspl or .لبات file, up to 1 MiB, in a new draft. It stays in this browser and does not run automatically.

    Private declaration and export correction

    ASPL 0.7.0 · Current release

    Check private-member, add share to answer, and retry the native program.

    On this page

    Purpose and preparation

    Intentional native checking failure, ASPL 0.7.0. Download the entry and this example's helpers.aspl for English or مساعدات.لبات for Arabic into a separate directory. No input lines or data assets are required. Check and run both fail with status 1, private-member and no output because answer is private.

    Current reference.

    Install the native toolchain · Follow the practical module guide.

    Arabic source

    Native only. These are source files, not browser run data.

    Native only · ASPL 0.7.0 · Arabic source

    Execution: Native only · ASPL 0.7.0

    Prerequisites:
    • Intentional native checking failure. Keep the entry file beside this example's helpers.aspl.

    Input: No input lines are required.

    Arabic source · Required source modules, keep each variant in a separate directory:

    استورد مساعدات.لبات بسم مكتبة.
    دالة ابدأ_الرئيسية() -> ص64 { أرجع مكتبة::جواب(). }
    

    Follow the Linux instructions to run this example. Download the source to keep a copy.

    Download الرئيسية.لبات

    Expected outcomes
    {
      "native": {
        "check": 1,
        "status": 1,
        "reason": "private-member",
        "output": ""
      }
    }

    English source

    Native only. These are source files, not browser run data.

    Native only · ASPL 0.7.0 · English source

    Execution: Native only · ASPL 0.7.0

    Prerequisites:
    • Intentional native checking failure. Keep the entry file beside this example's helpers.aspl.

    Input: No input lines are required.

    English source · Required source modules, keep each variant in a separate directory:

    import helpers.aspl as lib;
    fn start_main() -> i64 { return lib::answer(); }
    

    Follow the Linux instructions to run this example. Download the source to keep a copy.

    Download main.aspl

    Expected outcomes
    {
      "native": {
        "check": 1,
        "status": 1,
        "reason": "private-member",
        "output": ""
      }
    }

    Export the correction

    Add share before fn answer in the downloaded helper. Check again: it succeeds. Running the corrected entry returns status 42 with no output. Keep this edited helper in the failed example's directory. For a complete program returning 0 with output, use the separately downloaded corrected module family.

    Illustrative fragment

    share fn answer() -> i64 { return 42; }

    Check the result

    Source cards show exact catalog outcomes. Downloads retain original bytes, digests and supplied vocabulary.

    aspl check main.aspl
    aspl run main.aspl

    Historical normative scope

    • Historical specification, English source

      Historical MVP function background only; callable values and source modules are later extensions audited against the published native/browser 0.7.0 implementation

    Browse pages