Class AstPrinterVisitor

java.lang.Object
dev.frostlake.executor.expressions.AstPrinterVisitor
All Implemented Interfaces:
ExpressionVisitor<String>

public class AstPrinterVisitor extends Object implements ExpressionVisitor<String>
Renders an Expression AST into a compact, canonical S-expression string.

Purpose: stable, human-readable assertions in parser/builder tests and old-vs-new parser diffing during the migration to an ANTLR-driven expression AST. The rendered form is deliberately independent of each node's own toString() so it can stay stable as the nodes evolve.