Skip to content

Commit

Permalink
10 tests passed ^^
Browse files Browse the repository at this point in the history
  • Loading branch information
FatemehAlimoradi committed Jun 9, 2023
1 parent bb750a4 commit a8354c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def action_call(self, lookahead: Lookahead):
self.semantic_errors.append(
f"#{lookahead.lineno}: Semantic Error! Mismatch in type of argument {counter + 1} of \'{symbol.lexeme}\'. Expected '{arg_type}' but got '{arg2_type}' instead.")
break
counter += 1

self.pop(num_arg + 1) # pop arguments id of func
# push return value (?) TODO: this is temp for return value of output
Expand Down

0 comments on commit a8354c6

Please sign in to comment.