Package scriptingLanguage.errors

Examples of scriptingLanguage.errors.UnendedLineException


      superclass = frame.getType(extend);
    }
    else
      superclass = Interpreter.ObjectClass;
    if (!source.getCarType().equals(Interpreter.curlyBracesType))
      throw new UnendedLineException("An object declaration must have a body.");
    source = (Token) source.getCar();
    ArrayList<Token> lines = Interpreter.splitLines(source);
    ArrayList<Pair<Access, Token>> staticObjects = new ArrayList<>(), staticMethods = new ArrayList<>(), staticVariables = new ArrayList<>();
    while (lines.size() > 0) {
      Token line = lines.remove(0);
View Full Code Here


        block = (Token) block.getCar();
      else
        block = null;
      eval(caller, inner.remove(0), frame);
      if (inner.size() < 2)
        throw new UnendedLineException("A for loop requires three arguments, got " + inner.size() + 1 + ".");
      Token incrementer = inner.remove(1);
      while (!incrementer.isNull()) {
        Token item = new Token();
        do {
          item = item.append(incrementer.singular());
View Full Code Here

TOP

Related Classes of scriptingLanguage.errors.UnendedLineException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.