Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation with string templates #334

Open
kevindarby opened this issue Jul 6, 2019 · 1 comment
Open

Translation with string templates #334

kevindarby opened this issue Jul 6, 2019 · 1 comment
Labels

Comments

@kevindarby
Copy link

Hi, I'm trying to do a little code conversion like this, but it's not clear to me whether this library supports the stg files like in the example below.

https://theantlrguy.atlassian.net/wiki/spaces/ST/pages/1409118/Language+Translation+Using+ANTLR+and+StringTemplate

I'm referencing

<PackageReference Include="Antlr4" Version="4.6.6">
   <PrivateAssets>all</PrivateAssets>
   <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

Thanks,

Kevin

@sharwell
Copy link
Member

StringTemplate 4 is available for C# here:
https://www.nuget.org/packages/StringTemplate4/

That article is very old, but you should be able to use StringTemplate 4 with ANTLR 4 grammars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants