nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/objcwrapper grammar: accepts parameters without a type
[nit.git]
/
contrib
/
objcwrapper
/
grammar
/
objc.sablecc
diff --git
a/contrib/objcwrapper/grammar/objc.sablecc
b/contrib/objcwrapper/grammar/objc.sablecc
index
b997614
..
f5c90c8
100644
(file)
--- a/
contrib/objcwrapper/grammar/objc.sablecc
+++ b/
contrib/objcwrapper/grammar/objc.sablecc
@@
-121,11
+121,13
@@
Parser
{instance:} '-';
parameter =
{instance:} '-';
parameter =
- {named:} [left:]term ':' lpar parameter_type rpar attribute? [right:]term |
+ {named:} [left:]term ':' parameter_type_in_par? attribute? [right:]term |
{single:} term |
{comma:} comma '...' |
{macro:} macro_name;
{single:} term |
{comma:} comma '...' |
{macro:} macro_name;
+ parameter_type_in_par = lpar parameter_type rpar;
+
parameter_type =
{normal:} type |
{anonymous:} type anonymous |
parameter_type =
{normal:} type |
{anonymous:} type anonymous |