- public Character next(int numstates, int resets, int waits) throws IOException {
- Character ret = nextc(numstates, resets);
- if (ret==null) return null;
- else if (ret==left) System.out.print("\033[31m{\033[0m");
- else if (ret==right) System.out.print("\033[31m}\033[0m");
- else System.out.print(ret);
+ private static boolean debug = "true".equals(System.getProperty("tib.debug", "false"));
+ public Character next() throws IOException {
+ Character ret = nextc();
+ if (debug) {
+ if (ret==null) return null;
+ else if (ret==left) System.out.print("\033[31m{\033[0m");
+ else if (ret==right) System.out.print("\033[31m}\033[0m");
+ else System.out.print(ret);
+ }