Skip to content

Commit

Permalink
io functions stuff done????
Browse files Browse the repository at this point in the history
not sure, needs testing
  • Loading branch information
susanalima committed May 17, 2019
1 parent d7ca273 commit c64ffa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/JasminTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ private AbstractMap.SimpleEntry<String, String> process_nodeDot_children(SimpleN
String[] tmp_symbol_tokens = null;
SimpleNode child_node, tmp_node;
String tmp_symbol = symbolTable.eval_process((SimpleNode) node.jjtGetChild(1), symbol, funcname, State.BUILD);
System.out.println("tmp_symbol: " + tmp_symbol);
String tmp = "";

tmp_node = (SimpleNode) node.jjtGetChild(0);
Expand Down
4 changes: 4 additions & 0 deletions src/SymbolTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,12 @@ public String evalNodeDot(SimpleNode node, String symbol, String funcname, State
System.out.println("Invalid function");
System.exit(0);
} else {
if (!tmp.equals(symbol)) {
setUndefinedArgsType(symbol, tmp);
}
symbol = AND_SEPARATOR + IoFunctions.getInstance().getFunctionReturnType(tmp);
}

} else {
for (int i = 1; i < node.jjtGetNumChildren(); i++) { // i= 0 no caso de de se ter de analisar as variaveis
// antes do dot
Expand Down

0 comments on commit c64ffa2

Please sign in to comment.