Commit 860880f4 authored by leonelrosano's avatar leonelrosano
Browse files

arreglo de bugs funciones R

parent 4244d3ff
No preview for this file type
......@@ -1016,6 +1016,7 @@ createListFunction = function (graph) {
arrayFunction.push(funcionString);
var funcionString = '';
}
console.log(arrayFunction[0])
return arrayFunction;
}
......@@ -1168,19 +1169,41 @@ generateFunctionAndExp = function (exp,graph,namefun6) {
aux7[0]= aux27;
aux7[1] = aux17;
myList.push(aux7);
}else{
}else if (exp.args[0].kind == 'app'){
var aux101 = [];
var aux1101 = exp.fun+'('+ exp.args.map(e => this.generarExpresion(e)).join() +')';
var aux2101 = 'N'
aux101[0]= aux2101;
aux101[1] = aux1101;
myList.push(aux101);
}else if(((exp.args[0].kind == 'cnd' || exp.args[0].kind == 'bop') && (exp.args[0].exp1.kind == 'app' || exp.args[0].exp2.kind == 'app' )) || (exp.args[0].kind == 'uop' && exp.args[0].exp.kind == 'app') ){
var aux102 = [];
var aux1102 = exp.fun+'('+ exp.args.map(e => this.generarExpresion(e)).join() +')';
var aux2102 = 'N'
aux102[0]= aux2102;
aux102[1] = aux1102;
myList.push(aux102);
}else{
if(!namefun6.includes(exp.fun)){
var ListnameFNew = namefun6;
ListnameFNew.push(exp.fun);
for (var fun5 of graph.funs){
if(fun5.fun == exp.fun){
fun5.bdy.args = exp.args;
myList = this.generateFunctionAndExp(fun5.bdy,graph,ListnameFNew);
}
}
}else{
var aux76 = [];
aux76[0] = 'N';
aux76[1] = exp.fun;
aux76[1] = exp.fun + "("+exp.args.map(e => this.generarExpresion(e)).join()+")";
myList.push(aux76);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment