Current project I'm working on is limited to using antlr 3.5.2, but I would like to use the featureset of StringTemplate 4 for our code generation. Can antlr 3.5.2 generate a java treewalker that uses StringTemplate 4? (e.g. a tree grammer with output=template that results in a java file with ST* references instead of StringTemplate*)
相关问题
- Calling Java function with arguments from StringTe
- Using Antlr to get identifiers and function names
- How to get StringTemplate V4 to ignore < as del
- boolean and arithmetic expression grammar in ANTLR
- antlr 4.2.2 output to console warning (157)
相关文章
- In ANTLR, how do you specify a specific number of
- Slow ANTLR4 generated Parser in Python, but fast i
- Ignore some part of input when parsing with ANTLR
- Working example of wikitext-to-HTML in ANTLR 3
- How to parse a parenthesized hierarchy root?
- Interpreting custom language
- Two basic ANTLR questions
- How to deal with list return values in ANTLR
The
output=template
option only supports StringTemplate 3. You can still support StringTemplate 4, but it would require using embedded actions or a hand-written walker similar to the ones ANTLR 4 generates automatically.The ANTLR 4 tool itself uses the second option.