| Stability | stable |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Parser.Conditions
Description
This module defines parsers for control flow:
- Conditional statements (if/else)
- Iteration statements (while)
Note: Parsers in this module often require pBlock and pVarDef as arguments
to avoid circular dependencies with Parser.Statement.
Documentation
pIf :: Parser Ast -> Parser Ast -> Parser Ast Source #
Parse a full conditional statement: if, else if, else.
This function uses Dependency Injection for pVarDef and pBlock.