[antlr-interest] C# target

Sam Harwell sam at tunnelvisionlabs.com
Sun Apr 8 11:09:25 PDT 2012


Hello,

I've fixed this issue locally but it looks like build 9004 doesn't include it. For now, you can search for the file en.stg in the folders where you extracted the 7z file, and copy it to another file fr.stg in the same folder.

Thanks,
--
Sam Harwell
Owner, Lead Developer
http://tunnelvisionlabs.com


-----Original Message-----
From: forumer at smartmobili.com [mailto:forumer at smartmobili.com] 
Sent: Sunday, April 08, 2012 4:57 AM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] C# target

Ok so I have downloaded/unzipped antlr-dotnet-tool-3.4.1.9004.7z and when I run Antlr3.exe inside a command prompt I get :


$ ./Antlr3.exe
can't Load group file
C:\Developer\antlr-dotnet-tool-3.4.1.9004\Tool\Templates\messages\languages\fr.stg
Caused by:    ▒ Antlr4.StringTemplate.TemplateGroupFile..ctor(String 
fileName, Char delimiterStartChar, Char delimiterStopChar) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr4.StringTemplate\TemplateGroupFile.cs:ligne
82


Exception non g▒r▒e▒: System.IO.FileNotFoundException: No such group
file: 
C:\Developer\antlr-dotnet-tool-3.4.1.9004\Tool\Templates\messages\languages\fr.stg
    ▒ Antlr4.StringTemplate.TemplateGroupFile..ctor(String fileName, Char delimiterStartChar, Char delimiterStopChar) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr4.StringTemplate\TemplateGroupFile.cs:ligne
82
    ▒ Antlr4.StringTemplate.TemplateGroupFile..ctor(String fileName, Char delimiterStartChar, Char delimiterStopChar) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr4.StringTemplate\TemplateGroupFile.cs:ligne
94
    ▒ Antlr3.Tool.ErrorManager.SetLocale(CultureInfo locale) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr3\Tool\ErrorManager.cs:ligne
432
    ▒ Antlr3.AntlrTool..ctor(String toolPathRoot) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr3\AntlrTool.cs:ligne 127
    ▒ Antlr3.AntlrTool..ctor(String[] args) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr3\AntlrTool.cs:ligne 134
    ▒ Antlr3.AntlrTool.Main(String[] args) dans c:\dev\stringtemplate_main\antlrcs\main\Antlr3\AntlrTool.cs:ligne 104

I am using a french windows (nobody's perfect) and it seems to search for a localized file but cannot found it.
When I look at source code I can see :

if (!File.Exists(fileName))
                     throw new FileNotFoundException(string.Format("No
such group file: {0}", fileName));

Is it so important to use the right localized file, wouldn't be simpler to use english if it cannot find the right one ?


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list