-
Notifications
You must be signed in to change notification settings - Fork 0
Branch main
title: main branch summary: "The only branch: the Squeal CREATE TABLE and SELECT parsers built on Superpower, with an xUnit test suite, on net8.0." tags: [sql-parser, squeal, branch, main, sql, parser, csharp] created: 2026-06-25 status: draft dotnet: net8.0 build-status: builds
main is the only branch — the whole project. It holds the two Superpower parsers described in Architecture: Ddl for CREATE TABLE and Sql for SELECT, with their tokenizers, combinators, and the record syntax tree.
The Squeal library and its tests (source: Squeal):
-
DdlandSql— the two tokenizers and their combinators. - The statement, column, constraint, and expression records that form the syntax tree.
-
Squeal.Tests— xUnit theory tests covering column types, constraints, conflict resolutions, and SELECT projections and predicates, with sample DDL files inSqueal.Tests.
Builds with the installed .NET SDK — dotnet build compiled the solution with two IDE0040 accessibility-modifier warnings and no errors; tests were not run. Last touched July 2024. Squeal parses single-table CREATE TABLE and SELECT statements at the depth the CodeCrafters SQLite challenge needs. A // todo in Ddl.cs defers CHECK, DEFAULT, GENERATED, and foreign-key constraints; table-level constraints, INSERT, UPDATE, DELETE, joins, and GROUP BY and ORDER BY are out of scope, with some keywords tokenized but not parsed. It targets net8.0 and is not published as a package.
- Architecture — the two parsers and the syntax tree this branch implements.