{
"@context": "https://nxdlang.org/schema",
"doc_id": "PT101",
"title": "PT101 - Intentional Failures",
"description": "Intentional Test Failures",
"layer": "Passed Tests",
"category": "Passed Tests - Nim",
"keywords": [Nim, Pass, Test],
"doc_version": "1.0",
"status": "active"
}
# PT101 Intentional failures
### NXD Sample:
```nxd
module TEST
```
### Result:
FAIL
### Expected Output:
FAIL - Keyword capitalization violation
### Expected Rejection Stage:
[X] Lexer
[X] Parser
[ ] AST
[ ] IR
[ ] Semantics
[ ] Backend
### Actual Output:
N/A
### Notes: Intentional Parser failure. no IR JSON created. NXD requires the MODULE keyword to be fully uppercase.
The lexer classified "module" as LOWNAME rather than the MODULE keyword.
The parser rejected the first token when beginning module parsing.
Documentation