Closed pplimport closed 7 years ago
Original date: 2016-04-25 18:24:56
I ran into a similar issue when compiling amr with latest branch of charm
to reproduce
git clone charmgit:users/alanger/amr git checkout abstract3d make
This throws an error in charmxi parsing
Original date: 2016-10-13 19:53:41
Fix: https://charm.cs.illinois.edu/gerrit/#/c/1915/ https://github.com/UIUC-PPL/charm/commit/c30a4e57122b99147477654f956254ed3a34b309
In all places where a semicolon is optional, I changed the parsing rule to allow 0 or more semicolons. In all places where a semicolon was required, I changed the parsing rule to allow 1 or more semicolons.
Fix works for:
mainmodule m {
mainchare c {
entry c(CkArgMsg *msg);;
}
}
For the case mentioned by Harshitha, it was a case of having a semicolon at the end of an SDAG block. There wasn't a rule matching this.
mainmodule m {
mainchare c {
...
entry foo() serial {
};
}
}
For this, I added an optional semicolon at the end of an '{' CCode '}' block. With the fix, this passes as well.
Original author: Ralf Gunter Corrêa Carvalho Original issue: https://charm.cs.illinois.edu/redmine/issues/1007
This innocuous piece of code...
causes the following error:
This is probably due to the inconsistent way we deal with semicolons.