code: public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
  
          while (scan.hasNextLine()) {
              String line = scan.nextLine();
  
              LogicExpression<String> expr = LogicExpressionParsers.trivial.parse(line);
  
              System.out.println("string: " + expr.toString());
              System.out.println("value:  " + expr.apply(null));
              System.out.println();
          }
  
          scan.close();
      }
docs: *
  Iteractively interpret logic statements from stdin such as "true | (true & false)".
  @param args