[stringtemplate-interest] Maps
Terence Parr
parrt at cs.usfca.edu
Wed Aug 19 13:25:33 PDT 2009
see
public Map getMap(String name) {}
in STG. or subclass and walk field maps.
T
On Aug 18, 2009, at 6:38 AM, Jacques Victor wrote:
> Hi there,
>
> I've recently started using StringTemplate and today have run into a
> brick wall...so to speak...
>
> I'm loading my *stg file in .Net (C#) and setting the stringtemplate
> placeholder variables via a Dictionary. Once determining a chunk is
> of type 'ASTExpr', I I'm struggling to determine if that chunk is
> indeed a map and therefore not checking against my Dictionary and
> throwing an error if I don't find the chunk placeholder variable in
> the Dictionary.
>
> Is it possible to get all the maps defined in a Stringtemplategroup
> file or alternatively as I iterate through the chunks, in the
> StringTemplate object, be able to identify a chunk as a map?
>
> I've searched the internet but can't find any enum/type that would
> make a map chunk distinguishable, from other chunks, in .Net.
>
> Any help would greatly be appreciated.
>
> Thanks in advance.
>
> Regards
> Jacques
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list