Examples of ParseError


Examples of aterm.ParseError

    }

    public ATerm readFromBinaryFile(boolean headerAlreadyRead) throws ParseError, IOException {

        if(!headerAlreadyRead && !isBinaryATerm(reader))
            throw new ParseError("Input is not a BAF file");

        int val = reader.readInt();

        if (val != BAF_VERSION)
            throw new ParseError("Wrong BAF version (wanted " + BAF_VERSION + ", got " + val + "), giving up");

        nrUniqueSymbols = reader.readInt();
        int nrUniqueTerms = reader.readInt();

        if(isDebugging()) {
View Full Code Here

Examples of org.apache.cassandra.cql.compiler.parse.ParseError

        }

        public void displayRecognitionError(String[] tokenNames,
                                            RecognitionException e)
        {
            errors.add(new ParseError(this, e, tokenNames));
        }
View Full Code Here

Examples of org.apache.qpid.messaging.util.ParseError

    Token eat(Token.Type ... types)
    {
        if (types.length > 0 && !matches(types))
        {
            throw new ParseError(next(), types);
        }
        else
        {
            Token t = next();
            idx += 1;
View Full Code Here

Examples of org.apache.qpid.messaging.util.ParseError

                case 'x':
                    result.append(decode(st.substring(i+2, i+4)));
                    i += 2;
                    break;
                default:
                    throw new ParseError(tok);
                }
                i += 1;
            }
            else
            {
View Full Code Here

Examples of org.apache.qpid.messaging.util.ParseError

                {
                    break;
                }
                else
                {
                    throw new ParseError(next(), COMMA, RBRACE);
                }
            }
            else if (matches(RBRACE))
            {
                break;
            }
            else
            {
                throw new ParseError(next(), NUMBER, STRING, ID, LBRACE, LBRACK,
                                     RBRACE);
            }
        }

        eat(RBRACE);
View Full Code Here

Examples of org.apache.qpid.messaging.util.ParseError

        {
            return list();
        }
        else
        {
            throw new ParseError(next(), NUMBER, STRING, ID, LBRACE, LBRACK);
        }
    }
View Full Code Here

Examples of org.apache.qpid.messaging.util.ParseError

                {
                    break;
                }
                else
                {
                    throw new ParseError(next(), COMMA, RBRACK);
                }
            }
        }

        eat(RBRACK);
View Full Code Here

Examples of org.cfeclipse.cfml.parser.ParseError

      Parameter currParam = (Parameter)params[i];
     
      if (currParam.isRequired()
          && !(itemAttributes.containsKey(currParam.getName().toLowerCase()) || itemAttributes.containsKey(currParam.getName()
              .toUpperCase())) && !itemAttributes.containsKey("attributecollection")) {
        this.parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
          "The attribute \'" + currParam.getName() + "\' is compulsory for the <" + this.itemName + "> tag." + attributesFound));
      }
     
      if(!currParam.getTriggers().isEmpty()  && currParam.isRequired(suggestedAttributes) == 3 && !itemAttributes.containsKey(currParam.getName())){
        this.parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
          "The attribute \'" + currParam.getName() + "\' is required for the <" + this.itemName + "> tag." + attributesFound));
//      the logic here is funky for optional tags with triggers TODO: refactor
//      } else if (!currParam.getTriggers().isEmpty()  && currParam.isTriggered(suggestedAttributes) == 0 && itemAttributes.containsKey(currParam.getName())) {
//        this.parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
//          "The attribute \'" + currParam.getName() + "\' is not valid for the <" + this.itemName + "> tag." + attributesFound));
View Full Code Here

Examples of org.encog.parse.ParseError

    builder.append(TagConst.CDATA_END);
    builder.append('>');
    try {
      this.output.write(builder.toString().getBytes());
    } catch (final IOException e) {
      throw new ParseError(e);
    }
  }
View Full Code Here

Examples of org.openstreetmap.josm.actions.search.SearchCompiler.ParseError

    public long readNumber(String errorMessage) throws ParseError {
        if ((nextToken() == Token.KEY) && (currentNumber != null))
            return currentNumber;
        else
            throw new ParseError(errorMessage);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.