changed grammar generator to not render gated semantic predicates

This commit is contained in:
overflowerror 2021-12-02 20:37:13 +01:00
parent 8e1fa55e7d
commit b3e48838f3
2 changed files with 0 additions and 6 deletions

View file

@ -378,7 +378,6 @@ abstract class AbstractAntlrGrammarGenerator {
}
protected dispatch def String ebnf2(GatedSemanticPredicate it, AntlrOptions options, boolean supportActions) '''
{«JavaCodeUtils.getSource(code)»}?=>
'''
protected dispatch def String ebnf2(AbstractSemanticPredicate it, AntlrOptions options, boolean supportActions) '''

View file

@ -948,11 +948,6 @@ public abstract class AbstractAntlrGrammarGenerator {
protected String _ebnf2(final GatedSemanticPredicate it, final AntlrOptions options, final boolean supportActions) {
StringConcatenation _builder = new StringConcatenation();
_builder.append("{");
String _source = JavaCodeUtils.getSource(it.getCode());
_builder.append(_source);
_builder.append("}?=>");
_builder.newLineIfNotEmpty();
return _builder.toString();
}