I mistakenly posted this on the gouple groups mirror page. I converted the 'easy' parts (fragment, @header and @member declerations etc.), but since I'm new to Antlr I have a really hard time converting the Tree statements etc.
The grammar file can be found here: http://jena.cvs.sourceforge.net/viewvc/*checkout*/jena/jena2/src/com/...<http://jena.cvs.sourceforge.net/viewvc/*checkout*/jena/jena2/src/com/hp/hpl/jena/n3/n3.g> Below you can find some examples where I run into problems: [For instance, I have problems with:] n3Directive0!: d:AT_PREFIX ns:nsprefix u:uriref {directive(#d, #ns, #u);} ; [or] propertyList![AST subj] : NAME_OP! anonnode[subj] propertyList[subj] | propValue[subj] (SEMI propertyList[subj])? | // void : allows for [ :a :b ] and empty list "; .". ; propValue [AST subj] : v1:verb objectList[subj, #v1] // Reverse the subject and object | v2:verbReverse subjectList[subj, #v2] ; subjectList![AST oldSub, AST prop] : obj:item { emitQuad(#obj, prop, oldSub) ; } (COMMA subjectList[oldSub, prop])? ; objectList! [AST subj, AST prop] : obj:item { emitQuad(subj,prop,#obj) ; } (COMMA objectList[subj, prop])? | // Allows for empty list ", ." ; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
