From b0c668a96bc8da225d7a0c35dfd7ce4178ebb7c4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 16 Oct 2026 09:03:53 +0100 Subject: Add SQL AST for CREATE TABLE statements --- hobgoblin/src/output/lang/sql/ast.hob | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hobgoblin/src/output/lang/sql/ast.hob (limited to 'hobgoblin/src') diff --git a/hobgoblin/src/output/lang/sql/ast.hob b/hobgoblin/src/output/lang/sql/ast.hob new file mode 100644 index 0000000..9a51e38 --- /dev/null +++ b/hobgoblin/src/output/lang/sql/ast.hob @@ -0,0 +1,17 @@ +sum SqlStatement { + variant SqlCreateTableStatement; +} + +struct SqlCreateTableStatement { + field name: SqlIdentifier; + field columns: List[SqlColumnDefinition]; +} + +struct SqlColumnDefinition { + field name: SqlIdentifier; + field typeName: SqlIdentifier; +} + +struct SqlIdentifier { + field value: String; +} -- cgit v1.2.3