pub const MAX_PARSE_DEPTH: u32 = 128;Expand description
Maximum recursion depth in the hand-written parser.
C SQLite’s generated parser can admit an expression depth of 1000 without consuming one native call frame per level. This recursive-descent parser cannot safely mirror that number on FrankenSQLite’s minimum supported 2 MiB worker stack, especially in debug builds where expression frames are comparatively large. A 128-frame limit leaves a conservative 2x margin below the observed physical-stack failure point while ordinary flat Pratt chains remain effectively unbounded by this recursion counter.