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

templates.yacc.yacc.ftl Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
<#if code?has_content && code.fileheader?has_content>
%{
${code.fileheader}
%}


<#if tokens?has_content>
<#list tokens as i><#if i.tokens?has_content>
<#if i.type?has_content>%${i.type}<#else>%nonassoc<#list i.tokens as j> ${j}


<#if parser.start?has_content>
%start ${parser.start}

%%
<#list parser.grammars as grammar>
${grammar.rule}
<#list grammar.rhs as rhs>
	<#if rhs_index == 0>:<#else>|	${rhs.terms}<#if rhs.precedence?has_content> %prec ${rhs.precedence}
<#if rhs.action?has_content>
		{${rhs.action}}


	;


%%
<#if code?has_content && code.default?has_content>
${code.default}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy