summaryrefslogtreecommitdiff
path: root/hobgoblin/src/output/lang/sql/ast.hob
diff options
context:
space:
mode:
Diffstat (limited to 'hobgoblin/src/output/lang/sql/ast.hob')
-rw-r--r--hobgoblin/src/output/lang/sql/ast.hob17
1 files changed, 17 insertions, 0 deletions
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;
+}