
org.siani.itrules.dsl.ItrParser.g4 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of itrules-itr-reader Show documentation
Show all versions of itrules-itr-reader Show documentation
itrules is a Java-based Template Engine. It can generate HTML, XML, SQL, JSON or any other documents from templates. Java code can be separated from the View, allowing to develop applications according to the Model View Controller (MVC).
The newest version!
parser grammar ItrParser;
options { tokenVocab=ItrLexer; }
root : COMMENT* (definition COMMENT*)+ EOF;
definition : BEGIN_RULE signature body END_RULE;
signature : condition+ BEGIN_BODY;
condition : NOT? FUNCTION PARAMETERS?;
body : (text | mark | expression)*;
expression : BEGIN_EXPRESSION expressionBody+ (ELSE expressionBody+)* END_EXPRESSION;
expressionBody : text | mark | expression;
text : TEXT;
mark : TRIGGER ID option* (LIST SEPARATOR)?;
option : OPTION ID;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy