code: private static String  GetCurrentChar( Context context) {
          if (context.ptr >= context.inputString.length())
              return "EOL";
          return "" + context.inputString.charAt(context.ptr);
      }
docs: TODO Create Utils class for diagnostics and move this code