aboutsummaryrefslogtreecommitdiff
path: root/src/Testing.kt
diff options
context:
space:
mode:
authorMarvin Borner2019-08-14 18:28:10 +0200
committerMarvin Borner2019-08-14 18:28:10 +0200
commit38aad3dcda01fc5ed82556dbfdf4cfc30ff479d9 (patch)
treec38ac3df2f68e820f408c03468c43433e98f4be6 /src/Testing.kt
parentd9d9fbdd9d13a5eadc5c57ac19405983cfe11b2e (diff)
Began syntactical analysis
Diffstat (limited to 'src/Testing.kt')
-rw-r--r--src/Testing.kt7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Testing.kt b/src/Testing.kt
index 4e4ec0d..d1e6b17 100644
--- a/src/Testing.kt
+++ b/src/Testing.kt
@@ -2,12 +2,7 @@ class Testing {
init {
val source = Loader("/home/melvin/coding/run/example.run").load()
val tokens = Lexical().analyze(source)
- for (token in tokens) {
- print(token.first)
- print(" => ")
- print(token.second)
- print("\n")
- }
+ Syntax().check(tokens)
print(source)
}
} \ No newline at end of file