[stringtemplate-interest] File based templates and maps.

John Snyders jjsnyders at rcn.com
Thu Oct 26 15:48:49 PDT 2006



  yes, ST should not parse integers.  $map.("1")$ should work.
  It does work. Probably should change status from bug to "caveat"

Cheers
    Caleb.

And the grammar should be changed to remove the INT token, right? Because ST
should not parse integers.
So $attribute.5$ would no longer be valid syntax.
The rule (or caveat) is that when accessing a value from a map
$mapAttribute.("key")$ will always work and if the key for the map entry
matches the syntax for an ST ID then you can use $mapAttribte.key$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20061026/7a0d5871/attachment.html 


More information about the stringtemplate-interest mailing list