summaryrefslogtreecommitdiff
path: root/src/lang/mod.rs
diff options
context:
space:
mode:
authorGraham Northup <grissess@nexusg.org>2017-09-21 16:31:40 -0400
committerGraham Northup <grissess@nexusg.org>2017-09-21 16:31:40 -0400
commit3d370b9a980d88f884ddd87b62bc785c3b963e1d (patch)
tree2f35167101c09891ed48bc8cbf3603e993ec7341 /src/lang/mod.rs
parentdcfc4e82386f41bd36c3b102512bd225fc5331b6 (diff)
Tokenizer for DSL
Diffstat (limited to 'src/lang/mod.rs')
-rw-r--r--src/lang/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lang/mod.rs b/src/lang/mod.rs
new file mode 100644
index 0000000..8256f34
--- /dev/null
+++ b/src/lang/mod.rs
@@ -0,0 +1,12 @@
+pub mod tokenizer;
+pub use self::tokenizer::Tokenizer;
+
+pub enum Token {
+ Ident(String),
+ Integer(isize),
+ Float(f32),
+ Oper(char),
+ String(String),
+ EOF,
+}
+