Closed robstoll closed 10 years ago
Hmm... I loaded it up and played around but I did not run the generate. shoot. Sam: are we sure that we got it bundled with the right version of ANTLR? Ter
On Tue, Oct 8, 2013 at 2:19 PM, Robert Stoll notifications@github.comwrote:
I just downloaded antlworks 1.5.1 from http://www.antlr3.org/download/antlrworks-1.5.jar and tried to generate my grammar file. The good point of this version (compared to 1.5rc1), it generates the correct return type (as defined in the option ASTLabelType) for all sub-classes of ParserRuleReturnScope.
However, it generates an incomplete throws clause for the corresponding methods. The output in the console states:
[22:22:17] warning(24): template error: context [/outputFile /parser /genericParser /region/genericParsermembers /region/genericParsermembers /_sub488] 8:27 no such property or can't access: null.hasSynPred
As an example of such a wrong method signature:
public final TSPHPParser.compilationUnit_return compilationUnit() throws {
I could easily create a work around for this problem by adding the latest classes from the antlr-3.5.1-complete.jar to the antlrworks-1.5.jar
I suppose some classes are missing. I had a look into the src but couldn't really get along. Seems like the project is moving from ant to maven or something. Send me an email with some guiding and I would be glad to contribute to the project.
— Reply to this email directly or view it on GitHubhttps://github.com/antlr/antlrworks/issues/15 .
Dictation in use. Please excuse homophones, malapropisms, and nonsense.
That's ANTLRWorks 1.5, not 1.5.1. The download link for 1.5.1 is: http://www.antlr3.org/download/antlrworks-1.5.1.jar
oh alright, thanks for the link. Might be good then to update the website, the description says 1.5.1 but the link is obviously still the old one. http://www.antlr3.org/download.html
I just downloaded antlworks 1.5.1 from http://www.antlr3.org/download/antlrworks-1.5.jar and tried to generate my grammar file. The good point of this version (compared to 1.5rc1), it generates the correct return type (as defined in the option ASTLabelType) for all sub-classes of ParserRuleReturnScope.
However, it generates an incomplete throws clause for the corresponding methods. The output in the console states:
As an example of such a wrong method signature:
I could easily create a work around for this problem by adding the latest classes from the antlr-3.5.1-complete.jar to the antlrworks-1.5.jar
I suppose some classes are missing. I had a look into the src but couldn't really get along. Seems like the project is moving from ant to maven or something. Send me an email with some guiding and I would be glad to contribute to the project.