added decent error reporting
[sbp.git] / src / edu / berkeley / sbp / tib / Tib.java
index 69ac824..9ec8bd8 100644 (file)
@@ -106,11 +106,11 @@ public class Tib implements Token.Stream<CharToken> {
             if (indentation > last) {
                 indenting = false;
                 istack.add(indentation);
-                System.out.print("\033[31m+"+indentation+"+\033[0m");
+                //System.out.print("\033[31m+"+indentation+"+\033[0m");
                 return CharToken.left;
             } else /*if (indentation < last)*/ {
                 istack.remove(istack.size()-1);
-                System.out.print("\033[31m-"+last+"-\033[0m");
+                //System.out.print("\033[31m-"+last+"-\033[0m");
                 blank = true;
                 return CharToken.right;
             }
@@ -120,6 +120,7 @@ public class Tib implements Token.Stream<CharToken> {
             return done(c);
         }
     }
+
     public CharToken done(char c) {
         switch(c) {
             case '{': return CharToken.left;