Skip navigation links
General SQL Parser Documentation | ← Back to Docs

Package gudusoft.gsqlparser.pp2

Fault-tolerant SQL formatter (pp2) — augments, does not replace, the parse-dependent gudusoft.gsqlparser.pp formatter.

See: Description

Package gudusoft.gsqlparser.pp2 Description

Fault-tolerant SQL formatter (pp2) — augments, does not replace, the parse-dependent gudusoft.gsqlparser.pp formatter.

The pp2 engine is a region-hybrid formatter built on a source-span ledger, an immutable token spine, a guarded AST delegate that wraps the existing FormatterFactory.pp() machinery, a conservative MVP renderer, and (post-Phase-3) a lexical island fallback ported from the Delphi TSQLion algorithm. Together these handle well-formed, partially broken, or completely invalid SQL without throwing, without OOM, and without StackOverflowError.

Design and slice plan: gsp_java_core/doc/formatter/v2/final_granular_plan.md.

Invariants

The public entry point is FormatterFactory.pp2(...), added in slice S17 once the MVP is shippable. Prior slices test against the internal Pp2Formatter facade only.

Since:
4.1
Skip navigation links
General SQL Parser Documentation | ← Back to Docs

Copyright © 2026 Gudu Software. All rights reserved. | Back to Documentation | Full Documentation Site