protocolReferenceList : '<' protocolList '>' ;
protocolList : protocolName (',' protocolName)* ;
protocolName : protocolReferenceList | IDENTIFIER ;
@implementation OCKDocument {
OCKHTMLPDFWriter *_writer;
}
- (instancetype)initWithTitle:(NSString *)title elements:(NSArray<id<OCKDocumentElement> > *)elements {
return self;
}
@end
line 5:87 no viable alternative at input 'NSArray<id<OCKDocumentElement>>'
line 5:65 extraneous input '<' expecting {'auto', 'bycopy', 'byref', 'char', 'const', 'double', 'enum', 'extern', 'float', 'id', 'in', 'inout', 'instancetype', 'int', 'long', 'oneway', 'out', 'register', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', 'NS_OPTIONS', 'NS_ENUM', '__weak', '__unsafe_unretained', '(', '{', ';', ':', '*', IDENTIFIER}
line 5:87 mismatched input '>>' expecting {',', '>'}
line 5:91 extraneous input ')' expecting {'auto', 'bycopy', 'byref', 'char', 'const', 'double', 'enum', 'extern', 'float', 'id', 'in', 'inout', 'instancetype', 'int', 'long', 'oneway', 'out', 'register', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', 'NS_OPTIONS', 'NS_ENUM', '__weak', '__unsafe_unretained', '(', IDENTIFIER}
`>>` is defined as a binaryOperator
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Greetings!
Jim's comments are, of course, spot on ---- but
The OP's issues were with '>>' and not '<<'
So in Jim's remarks replace `<<` with `>>` and LCHEVRON with RCHEVRON and you should be good to go.
However, there are similar issues with `<<` that you
have not encountered yet, so do Jim's suggestions directly also.