// Path: core/src/main/java/org/kobjects/expressionparser/ParsingException.java
// public class ParsingException extends RuntimeException {
//   final public int start;
//   final public int end;
//   public ParsingException(int start, int end, String text, Exception base) {
//     super(text, base);
//     this.start = start;
//     this.end = end;
//   }
// }


import org.kobjects.expressionparser.ParsingException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
package org.kobjects.expressionparser.demo.basic;



public class Basic {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    Interpreter interpreter = new Interpreter(reader);

    System.out.println("  **** EXPRESSION PARSER BASIC DEMO V1 ****\n");
    System.out.println("  " + (Runtime.getRuntime().totalMemory() / 1024) + "K SYSTEM  "
        + Runtime.getRuntime().freeMemory() + " BASIC BYTES FREE\n");

    boolean prompt = true;
    while (true) {
      if (prompt) {
        System.out.println("\nREADY.");
      }
      String line = reader.readLine();
      if (line == null) {
        break;
      }
      prompt = true;
      try {
        prompt = interpreter.processInputLine(line);
// Path: core/src/main/java/org/kobjects/expressionparser/ParsingException.java
// public class ParsingException extends RuntimeException {
//   final public int start;
//   final public int end;
//   public ParsingException(int start, int end, String text, Exception base) {
//     super(text, base);
//     this.start = start;
//     this.end = end;
//   }
// }


// Path: demo/basic/src/main/java/org/kobjects/expressionparser/demo/basic/Basic.java
import org.kobjects.expressionparser.ParsingException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

package org.kobjects.expressionparser.demo.basic;



public class Basic {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    Interpreter interpreter = new Interpreter(reader);

    System.out.println("  **** EXPRESSION PARSER BASIC DEMO V1 ****\n");
    System.out.println("  " + (Runtime.getRuntime().totalMemory() / 1024) + "K SYSTEM  "
        + Runtime.getRuntime().freeMemory() + " BASIC BYTES FREE\n");

    boolean prompt = true;
    while (true) {
      if (prompt) {
        System.out.println("\nREADY.");
      }
      String line = reader.readLine();
      if (line == null) {
        break;
      }
      prompt = true;
      try {
        prompt = interpreter.processInputLine(line);
      } catch (ParsingException e) {