I am trying to use ANTLR to create understand how grammar works. I have started playing with ANTLR and created a simple addition program. Below is my ...
I am trying to use ANTLR to create understand how grammar works. I have started playing with ANTLR and created a simple addition program. Below is my ...
I'm having some trouble figuring out how to migrate my code to use org.stringtemplate.v4 . I have a single template file in a 'templates' folder under ...
I am trying to generate code with stringtemplate4, and I have a line like this: so A, B and C are optional parameters that if they are not set, I d ...
I need an st4 expression to render an element if a string is not empty: <if(theString)>...<endif> does not work - it seems to only work f ...
I'm new to StringTemplates and try to figure out how to build a group of templates from a source other than files (it's actually in a database). I mi ...
I am using jdbi3 with StringTemplate 4 templating engine, I have this test query: Using StringTemplate engine when I have to escape with \ the char ...
Using org.stringtemplate.v4.ST I am trying to render this template: When the st.render() method is invoked, this is printed out: Even though I h ...
I have a directory structure like this: Here's what the Foo.st looks like: Here's my Java code with StringTemplate: But the output is: How ...
I am trying to extend ANTLR4 with a new PHP target and have a problem with the StringTemplate file (.stg): In the StringTemplate file the Parser is d ...
So I have a list that is iterated over like so: I'd like to use the index. I saw that there is an <i> and <i0> index token, but I do ...
I'm processing Excel files with ExcelExplorer based on Stringtemplate4 (ST). The files contain several columns with dates. By default, the dates are r ...
Generated accessors of parse tree context nodes do not conform getProperty()/isProperty()/hasProperty() standard. As a result, ST can’t be applied to ...
I am injecting an attribute into my StringTemplate4 template which has multiple levels of sub-attributes. As I work through the template outputting v ...
This is my StringTemplate template for generating import statements, which does map operation on the anonymous template {i | import <i>;<\n&g ...
I am trying to use string template to generate Pig/Hadoop code. Since I am a novice I couldn't figure it out myself. Any help will be appreciated. I ...
String Template uses <...> or $...$ as delimiters. I need to have a custom delimiter, something like <<...>>. Is this possible? The ...
I need to use ST4 for my eclipse plugin development project. As stated by antlr guys, the last version 4.5.3 is osgi ready and have st4 in his tool pa ...
I have something like this: This produces the desired output: When I change the parameters subtemplate to the following: The template is more ...
StringTemplate instances in version 3 had a .reset() method. I am generating inside a for/each loop and want to reset the instance to its default sta ...
I'm using StringTemplate 4.0.8 with Java. In the StringTemplate-4 documentation, it says that Dictionary strings can also be templates that can ...