We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update: pull request #47
missing comma when calling test(1 2), and compile ok
int test(int a, int b) { return a + b; } int main() { int result; result = test(1 2); return 0; }
patch
else if (tk == Id) { ... -- while (tk != ')') { expr(Assign); *++e = PSH; ++t; if (tk == ',') next(); } ++ while (tk != ')') { ++ expr(Assign); *++e = PSH; ++t; ++ if (tk == ',') { next(); if(tk == ')') { printf("%d: error unexpected comma in function call\n", line); exit(-1); }} ++ else if(tk != ')') { printf("%d: error missing comma in function call\n", line); exit(-1); } ++ } ... }
The text was updated successfully, but these errors were encountered:
fixed bug: grammar error in function call
1fa74b8
related issue: rswier#46
7f53934
No branches or pull requests
update: pull request #47
missing comma when calling test(1 2), and compile ok
patch
The text was updated successfully, but these errors were encountered: