package fr.lifl.stc.stan.dsl; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.ANTLRFileStream; import java.io.IOException; import org.antlr.runtime.RecognitionException; public class DSLReader { public PolicyManager policies; public DSLReader(String path) throws IOException, RecognitionException { ANTLRFileStream input=null; input = new ANTLRFileStream(path); dslLexer lexer = new dslLexer(input); CommonTokenStream tokens = new CommonTokenStream(lexer); dslParser parser = new dslParser(tokens); dslParser.policy_return ret = parser.policy(); policies = parser.policies; } }