summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/01-struct/hobgoblin.json51
-rw-r--r--examples/01-struct/src/point.hob4
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/01-struct/hobgoblin.json5 b/examples/01-struct/hobgoblin.json5
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/examples/01-struct/hobgoblin.json5
@@ -0,0 +1 @@
+{}
diff --git a/examples/01-struct/src/point.hob b/examples/01-struct/src/point.hob
new file mode 100644
index 0000000..82b55cc
--- /dev/null
+++ b/examples/01-struct/src/point.hob
@@ -0,0 +1,4 @@
+struct Point {
+ field x: Int32;
+ field y: Int32;
+}