org.snapscript.parse.GrammarResolver Maven / Gradle / Ivy
package org.snapscript.parse;
import java.util.Map;
public class GrammarResolver {
private final Map grammars;
public GrammarResolver(Map grammars) {
this.grammars = grammars;
}
public Grammar resolve(String name) {
return grammars.get(name);
}
}