code: public BBProcessor build() {
          this.scopes = new HashMap<Scope, ProcScope>();
          this.codes = new HashMap<Code, ProcCode>();
          patternElementFactory.cleanConstants();
  
          BBProcessor processor = new BBProcessor();
          processor.setScope(createScope(conf.getRootScope()));
          processor.setPrefix(createTemplate(conf.getPrefix()));
          processor.setSuffix(createTemplate(conf.getSuffix()));
          processor.setParams(conf.getParams());
          processor.setConstants(patternElementFactory.getConstants());
          processor.setNestingLimit(conf.getNestingLimit());
          processor.setPropagateNestingException(conf.isPropagateNestingException());
  
          // Init scopes
          for (ProcScope scope : scopes.values()) {
              scope.init();
          }
  
          return processor;
      }
docs: Build an processor.