summaryrefslogtreecommitdiff
path: root/Source/Core/Scanner.cs
diff options
context:
space:
mode:
authorGravatar Dietrich <dgeisler50@gmail.com>2015-04-20 05:20:06 -0600
committerGravatar Dietrich <dgeisler50@gmail.com>2015-04-20 05:20:06 -0600
commit4f35766542c5735374b85f66006afea875f07b79 (patch)
tree76842d97212c417a28baf425e9b30fb2a6ecf3f7 /Source/Core/Scanner.cs
parentbdb6a7db94de0310fb6535facb33782fe231c013 (diff)
added a collection of console writes for debugging. These should be removed in a future commit
Diffstat (limited to 'Source/Core/Scanner.cs')
-rw-r--r--Source/Core/Scanner.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Scanner.cs b/Source/Core/Scanner.cs
index a3c139c8..2df118d6 100644
--- a/Source/Core/Scanner.cs
+++ b/Source/Core/Scanner.cs
@@ -502,6 +502,7 @@ public class Scanner {
void CheckLiteral() {
+ Console.Write(t.val + " is a literal");
switch (t.val) {
case "var": t.kind = 7; break;
case "where": t.kind = 13; break;
@@ -548,6 +549,7 @@ public class Scanner {
case "lambda": t.kind = 92; break;
default: break;
}
+ Console.WriteLine(" and is kind " + t.kind);
}
Token/*!*/ NextToken() {
@@ -777,6 +779,7 @@ public class Scanner {
}
t.val = new String(tval, 0, tlen);
+ Console.WriteLine("Scanning a token with value " + t._val);
return t;
}