summaryrefslogtreecommitdiff
path: root/src/tparse/token.go
diff options
context:
space:
mode:
authorKyle Gunger <corechg@gmail.com>2020-06-28 14:30:45 -0400
committerKyle Gunger <corechg@gmail.com>2020-06-28 14:30:45 -0400
commit8f9cf0d4856bb53009bb58b53a42e21e2cd1e947 (patch)
treeb022091a0c3105e2da54b9dc16e5f55852b788f3 /src/tparse/token.go
[Initial parser] Upload existing
Diffstat (limited to 'src/tparse/token.go')
-rw-r--r--src/tparse/token.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tparse/token.go b/src/tparse/token.go
new file mode 100644
index 0000000..712b746
--- /dev/null
+++ b/src/tparse/token.go
@@ -0,0 +1,13 @@
+package tparse
+
+// Token represents a token in a program
+type Token struct {
+ Type int
+ Data string
+}
+
+// Container represents a container of data
+type Container struct {
+ Data []interface{}
+ Holds bool
+}