Package org.renjin.compiler.ir.tac.functions

Examples of org.renjin.compiler.ir.tac.functions.FunctionCallTranslator


              exp instanceof FunctionCall);
  }
 
  public void translateStatements(TranslationContext context, SEXP sexp) {
    if( isReservedFunction(sexp) ) {
      FunctionCallTranslator translator = builders.get( ((FunctionCall)sexp).getFunction() );
      if(translator != null) {
        translator.addStatement(this, context, (FunctionCall)sexp);
        return;
      }
    }
    Expression expr = translateExpression(context, sexp);
    if(!(expr instanceof Constant)) {
View Full Code Here


        PairList.Node.newBuilder()
          .addAll(getterCall.getArguments())
          .add("value", new StringArrayVector("TODO: evaluated RHS here"))
          .build());
   
    FunctionCallTranslator translator = builders.get(setter);
    if(translator != null) {
      return translator.translateToSetterExpression(this, context, setterCall, rhs);
    }

   
    if(setter.isReservedWord()) {
      List<Expression> arguments = makeEvaledArgList(context, getterCall.getArguments());
View Full Code Here

  }

  public Expression translatePrimitiveCall(TranslationContext context,
      FunctionCall call) {
    SEXP function = call.getFunction();
    FunctionCallTranslator translator = builders.get(function);
    if(translator != null) {
      return translator.translateToExpression(this, context, call);
    } else {
      if(!(function instanceof Symbol)) {
        throw new IllegalArgumentException("Expected symbol, got '" + function + "'");
      }
      return new PrimitiveCall(call, (Symbol)function, makeEvaledArgList(context, call.getArguments()));
View Full Code Here

TOP

Related Classes of org.renjin.compiler.ir.tac.functions.FunctionCallTranslator

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.