예제 #1
0
 public ModelBuilderProto(VCGenerator gen, MathSymbolTable symtab) {
   this.symtab = symtab;
   this.tr = gen.getModule();
   this.g = symtab.getTypeGraph();
   this.gen = gen;
   this.outputFile = new VCOutputFile(gen.getCompiler());
 }
예제 #2
0
 @Override
 public void enterModuleDecl(ResolveParser.ModuleDeclContext ctx) {
   try {
     moduleScope = symtab.getModuleScope(tr.getModuleIdentifier());
   } catch (NoSuchModuleException e) { // shouldn't happen, but eh.
     gen.getCompiler().errMgr.semanticError(ErrorKind.NO_SUCH_MODULE, Utils.getModuleCtxName(ctx));
   }
 }