antlr / antlr/stringtemplate4

How can I call template in dynamic way

Open
#174 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

I have a template like this
MethodBlock(block) ::= <<
}; separator="\n">
>>
It will call to template MethodDeclaration if simple Name is MethodDeclaration

But I want to add prefix to template name, like this
MethodBlock(block) ::= <<
}; separator="\n">
>>

I like to call temp_MethodDeclaration

But it fires error. How can I fix it?

Thnks
Alex

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.