Examples of InvalidSyntaxException


Examples of org.renjin.compiler.ir.exception.InvalidSyntaxException

  @Override
  public Expression translateToExpression(IRBodyBuilder builder,
      TranslationContext context, FunctionCall call) {
    SEXP argument = call.getArgument(0);
    if(!(argument instanceof FunctionCall)) {
      throw new InvalidSyntaxException(".Internal() expects a language object as its only argument");
    }
    FunctionCall primitiveCall = (FunctionCall) argument;

    return builder.translatePrimitiveCall(context, primitiveCall);
  }
View Full Code Here

Examples of org.renjin.compiler.ir.exception.InvalidSyntaxException

    if( lhs instanceof Symbol) {
      target = (Symbol) lhs;
    } else if(lhs instanceof StringVector) {
      target = Symbol.get(((StringVector) lhs).getElementAsString(0));
    } else {
      throw new InvalidSyntaxException("cannot assign to value '" + lhs + " (of type " + lhs.getTypeName() + ")");
    }

    // make the final assignment to the target symbol
    if(rhs instanceof Promise) {
      rhs = rhs.force(context);
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.