diff --git a/corec.y b/corec.y index 2ab8bc83e9aa22dba11b9723538916499e1e5f29..aec86e0eed74c07385eee5ecec6a55ef3a8727cf 100644 --- a/corec.y +++ b/corec.y @@ -381,6 +381,11 @@ I : | AFFECTATION // Affectation of variables | CALL // Call of functions or variables | read_f left_parenthesis ID1 right_parenthesis // Read + { + struct symbol* id_read = symtable_get(SYMTAB,$3,symb_scope_function); + + gencode(CODE,CALL_READ,id_read,NULL,NULL); + } | print left_parenthesis {isPrintCall = 1;} CALL right_parenthesis // Print variable (printing out var of functions ins't implement yet) { gencode(CODE,CALL_PRINT,$4.ptr,NULL,NULL);