IMO, ideally the following would apply: * Parser rules and global scopes are private by default * Parser rules and global scopes can be marked by the keywords 'public' or 'protected', similar to how 'fragment' can sit on a lexer rule. * Classes holding parser rule return values (when present) take on the visibility of the parser rule * Local scopes inherit the visibility of their parent rule by default, but can also be marked with explicit visibility
Sam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Luber Sent: Thursday, October 30, 2008 7:57 AM To: Heinrich du Toit Cc: [EMAIL PROTECTED] Subject: Re: [antlr-interest] [csharp2] - scope privacy Heinrich du Toit schrieb: > Hi > > In c# target.. > > The global scope class that's created is created protected inside the > parser class. > > Can I somehow get the generator to declare this public. > As I want the info inside the scope to be exported to an outside api class. > > It would be easier to simply export the scope class rather than having a > whole lot of function calls for every bit of information. > > Thanks in advance! > Heinrich Currently there is no way to do so beyond modifying the StringTemplate files. Maybe Ter will add another option in a later version. Johannes > > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest > Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-addr ess > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-addr ess List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
