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.
-
ClassDescriptionParses postfix increment/decrement expressions after a mutable target.Parses prefix unary operators, including mutating increment and decrement targets.