ftl.NonTerminalCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freshmarker Show documentation
Show all versions of freshmarker Show documentation
A simple, small but powerful template engine based loosely on the FreeMarker syntax. FreshMarker is
implemented in Java 21 and supports the `java.time` API and Records.
/* Generated by: CongoCC Parser Generator. NonTerminalCall.java */
package ftl;
import java.io.PrintStream;
public class NonTerminalCall {
final TokenSource lexer;
final String sourceFile;
public final String productionName;
final String parserClassName;
final int line, column;
public NonTerminalCall(String parserClassName, TokenSource lexer, String sourceFile, String productionName, int line, int column) {
this.parserClassName = parserClassName;
this.lexer = lexer;
this.sourceFile = sourceFile;
this.productionName = productionName;
this.line = line;
this.column = column;
}
final TokenSource getTokenSource() {
return lexer;
}
StackTraceElement createStackTraceElement() {
return new StackTraceElement("FreshMarkerParser", productionName, sourceFile, line);
}
public void dump(PrintStream ps) {
ps.println(productionName + ":" + line + ":" + column);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy