[antlr-interest] working examples for StringTemplate4 and C#? (I'm stuck again)

Voelkel, Andy andy.voelkel at plantronics.com
Mon Oct 31 10:08:10 PDT 2011


Hi Sam,

Is this helpful:?

        System.dll!System.Uri.CreateThis(string uri, bool dontEscape, System.UriKind uriKind) + 0x112 bytes
        System.dll!System.Uri.Uri(string uriString) + 0x15 bytes
        Antlr4.StringTemplate.dll!Antlr4.StringTemplate.TemplateGroupFile.TemplateGroupFile(string fileName, char delimiterStartChar, char delimiterStopChar) + 0x135 bytes
>       Tree1.exe!Eval.Eval(Antlr.Runtime.Tree.ITreeNodeStream input, Antlr.Runtime.RecognizerSharedState state) Line 61 + 0x20 bytes   C#
        Tree1.exe!Eval.Eval(Antlr.Runtime.Tree.ITreeNodeStream input) Line 51 + 0x23 bytes      C#
        Tree1.exe!Program.Main(string[] args) Line 25 + 0x18 bytes      C#
        [Native to Managed Transition]
        [Managed to Native Transition]
        mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x6d bytes
        Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2a bytes
        mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63 bytes
        mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0xb0 bytes
        mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes
        mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes
        [Native to Managed Transition]


-----Original Message-----
From: Sam Harwell [mailto:sharwell at pixelminegames.com]
Sent: Sunday, October 30, 2011 8:41 PM
To: Voelkel, Andy; 'ANTLR interest'
Subject: RE: [antlr-interest] working examples for StringTemplate4 and C#? (I'm stuck again)

Do you have a stack trace or any other information about where the exception occurs? In Visual Studio, you can get a stack trace even if you don't have the source code by going to Debug>Exceptions..., checking the box next to UriFormatException, and then looking at the Call Stack window after the exception is thrown.

Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Voelkel, Andy
Sent: Sunday, October 30, 2011 5:05 PM
To: 'ANTLR interest'
Subject: [antlr-interest] working examples for StringTemplate4 and C#? (I'm stuck again)

Hi,

I'm getting stuck trying to start using template group files. I try this to open my .stg file:

TemplateGroup Tg = new TemplateGroupFile("RTX.stg", '<', '>');

.. and I get a UriFormatException, "The format of the URI could not be determined".

Are there any working examples of using ST4 with C# that anyone could point me to? I'll gladly update the ST4 Wiki (which seems to be out of date) as I get simple examples working.

Or would I be better off just sticking with ST3?


-          Andy

________________________________

CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain information that is confidential and/or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, please DO NOT disclose the contents to another person, store or copy the information in any medium, or use any of the information contained in or attached to this transmission for any purpose. If you have received this transmission in error, please immediately notify the sender by reply email or at privacy at plantronics.com, and destroy the original transmission and its attachments without reading or saving in any manner.

For further information about Plantronics - the Company, its products, brands, partners, please visit our website www.plantronics.com.

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



________________________________

CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain information that is confidential and/or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, please DO NOT disclose the contents to another person, store or copy the information in any medium, or use any of the information contained in or attached to this transmission for any purpose. If you have received this transmission in error, please immediately notify the sender by reply email or at privacy at plantronics.com, and destroy the original transmission and its attachments without reading or saving in any manner.

For further information about Plantronics - the Company, its products, brands, partners, please visit our website www.plantronics.com.


More information about the antlr-interest mailing list