eclipse-viatra / org.eclipse.viatra

Main components of the VIATRA framework
https://eclipse.dev/viatra
Eclipse Public License 2.0
0 stars 1 forks source link

Avoid parse error for empty parameter list for annotations #177

Open ujhelyiz opened 4 days ago

ujhelyiz commented 4 days ago

When writing an annotation without parameters but with parentheses, a parse error is thrown, e.g.

@FunctionalDependency()
pattern a(b, c){
  Class(b);
  Class(c);
}

throws a mismatched input ')' expecting RULE_ID error. We should allow adding empty parentheses optionally, while still favoring the previous syntax.