Esempio n. 1
0
 def add_library(self, library):
     wrapped_library = Library()
     wrapped_library.filters = library.filters
     for name, tag_compiler in library.tags.items():
         wrapped_library.tags[name] = self.wrap_compile_function(
             name, tag_compiler)
     self.parser.add_library(wrapped_library)
Esempio n. 2
0
 def add_library(self, library):
     wrapped_library = Library()
     wrapped_library.filters = library.filters
     for name, tag_compiler in library.tags.items():
         wrapped_library.tags[name] = self.wrap_compile_function(name, tag_compiler)
     self.parser.add_library(wrapped_library)