user310291
user310291

Reputation: 38180

StringTemplate on C#: does it really work or is it completely buggy?

I have tried without success to add anttlr.StringTemplate namespace to c# cs file it cannot find it.

Is this package for .net http://www.stringtemplate.org/download.html completely buggy ? If yes how can the author not even test this very basic stuff ?

Update: finally I found it. Yes the link from the official front page is yes Buggy! I have downloaded from another link http://www.antlr.org/download/CSharp and now it works. They didn't even check what a shame.

Upvotes: 0

Views: 1625

Answers (2)

JeremyDWill
JeremyDWill

Reputation: 3132

Since you are writing C# code (not Java), make sure the first letter of the namespace is capitalized, and that you only have one 't' in Antlr:

Correct: Antlr.StringTemplate
Incorrect: anttlr.StringTemplate

See http://www.antlr.org/wiki/display/ST/Five+minute+Introduction for details.

Upvotes: 3

Femaref
Femaref

Reputation: 61437

You need to add a reference in the project as well.

Upvotes: 1

Related Questions