Hello, again.....

The penny has just dropped....

.... *there is no ST.stg file since StringTemplate is a purely Java code
base*... silly me :$

So I guess I do emits with simple fprintf's ;-(   (Such is the life with C)

Sorry for my confusion.

Regards,

Stephen Gaito


On 12/04/2012 20:02, Stephen Gaito wrote:
> Hello,
>
> I am developing a fairly standard "filter" using the ANTLR 3.4 C
> target to be able to filter LaTeX and Creole into HTML as a PHP Zend
> extension.
>
> I have just gotten to the stage where I need emit the HTML text
> output, and following Terence's excellent advice I want to make use of
> a Tree Walker with StringTemplate rules.
>
> However, while the Java version of my grammars now ANTLR-compile, the
> equivalent C version of the Tree Walker using StringTemplates produces
> the following error message:
>> error(10):  internal error: LC9Output.g :
>> java.lang.IllegalArgumentException: No such group file:
>> org/antlr/codegen/templates/C/ST.stg
> at the point where the antlr tool is loading its templates for the
> C-target.
>
> *When I go the sources on GitHub I find that indeed there is *no*
> ST.stg file checked in (nor has there been for over year).*
>
> When I unpack the jar file (antlr-3.4-complete.jar) from the official
> release, I also can not file any ST.stg in the appropriate place.
>
> Just to be sure that functionality has not been re-arranged (between
> the Java and C targets), I have check for the existence of some of the
> templates in the Java-target's version of ST.stg, the C templates do
> not contain, for example, any templates named: "rewriteTemplate" or
> "replaceTextInLine".
>
> SO I surmise that either
>
> (1) ST.stg has never existed in the C-target or
> (2) the ST.stg was accidentally missed out from the GitHub source when
> the Perforce->GitHub move took place...
>
> *Does anyone have a complete ST.stg StringTemplate file for the ANTLR
> 3.4 C target?
> *
> Regards,
>
> Stephen Gaito
>
>
> _______________________________________________
> antlr-dev mailing list
> antlr-dev@antlr.org
> http://www.antlr.org/mailman/listinfo/antlr-dev
_______________________________________________
antlr-dev mailing list
antlr-dev@antlr.org
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to