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.

    Recursive function helper

    ASPL 0.7.0 · Current release

    Compute factorial recursively with no output and process status 120 in browser and native execution.

    On this page

    Purpose and preparation

    Browser and native, ASPL 0.7.0. No input lines, data assets or source modules are required. The factorial example returns process status 120 with no output. A shell treats that nonzero status as unsuccessful even though language execution succeeds.

    Current reference.

    Arabic source

    Open a new browser draft, then select Run explicitly. Opening checks without executing.

    Browser and native · ASPL 0.7.0 · Arabic source

    Execution: Browser and native · ASPL 0.7.0

    Prerequisites:
    • No prior knowledge is required to open and check it.

    Input: No input lines are required.

    دالة مضروب(القيمة: ص64) -> ص64 {
        إذا القيمة <= 1 {
            أرجع 1.
        }
        أرجع القيمة * مضروب(القيمة - 1).
    }
    
    دالة ابدأ_الرئيسية() -> ص64 {
        أرجع مضروب(5).
    }
    
    Download دوال.لبات

    Expected outcomes
    {
      "browser": {
        "check": "success",
        "class": "success",
        "output": "",
        "processStatus": 120
      },
      "native": {
        "check": 0,
        "status": 120,
        "output": ""
      }
    }

    English source

    Open a new browser draft, then select Run explicitly. Opening checks without executing.

    Browser and native · ASPL 0.7.0 · English source

    Execution: Browser and native · ASPL 0.7.0

    Prerequisites:
    • No prior knowledge is required to open and check it.

    Input: No input lines are required.

    fn factorial(value: i64) -> i64 {
        if value <= 1 {
            return 1;
        }
        return value * factorial(value - 1);
    }
    
    fn start_main() -> i64 {
        return factorial(5);
    }
    
    Download functions.aspl

    Expected outcomes
    {
      "browser": {
        "check": "success",
        "class": "success",
        "output": "",
        "processStatus": 120
      },
      "native": {
        "check": 0,
        "status": 120,
        "output": ""
      }
    }

    Check the result

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

    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