Documentation

PT107 Intentional Failure

Back to documentation index
{
  "@context": "https://nxdlang.org/schema",
  "doc_id": "PT107",
  "title": "PT107 - Intentional Failures",
  "description": "Intentional Test Failures",
  "layer": "Passed Tests",
  "category": "Passed Tests - Nim",
  "keywords": [Nim, Pass, Test],
  "doc_version": "1.0",
  "status": "active"
}

# PT107 Intentional Failure

### NXD Sample:

```nxd
MODULE TEST

FUNC MAIN()
    LET X SET 1
    
    echo(X)
```

### Result:

FAIL

### Expected Output:

FAIL - Capitalization Violation

### Expected Rejection Stage:

[ ] Lexer
[X] Parser
[ ] AST
[ ] IR
[ ] Semantics
[ ] Backend

### Actual Output:

N/A

### Notes:

intentional Parser failure. no IR JSON generated. NXD capitalization rules require uppercase language constructs.
The lexer classified "echo" as LOWNAME.
The parser rejected the construct before IR generation.