All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.siani.itrules.dsl.ItrParser.g4 Maven / Gradle / Ivy

Go to download

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