Package io.github.protasm.jvmud.compiler.parser.parselet


package io.github.protasm.jvmud.compiler.parser.parselet
Pratt parser building blocks for LPC expressions.

Defines prefix and infix parselet interfaces alongside concrete implementations for operators, literals, and grouping. Each parselet understands its precedence/associativity and produces the appropriate expression AST nodes.

Assumes the owning PrattParser controls token traversal and assignment context; parselets themselves remain stateless and focused on node construction.

Parselets do not perform type analysis. They preserve expression structure for semantic analysis and IR lowering.