use of org.whole.lang.grammarbased.GrammarsToGrammarBasedQuery in project whole by wholeplatform.
the class GrammarsUIInterpreterVisitor method createGrammarBased.
public static IEntity createGrammarBased(Grammar entity, IBindingManager bm) {
// FIXME ensure normalized: NormalizerOperation.normalize(entity);
Grammar g = entity;
PathExpression pathExpression = new GrammarsToGrammarBasedQuery().create();
IEntity grammarBased = BehaviorUtils.evaluateFirstResult(pathExpression, g, bm);
return NormalizerOperation.normalize(grammarBased);
}
Aggregations