Beispiel #1
0
class Generator(object):
    
    def __init__(self, dsl_template, settings):
        
        analzier = DSLAnalizer(dsl_template)
        code_blocks = analzier.parse()
        self.interpreter = DSLInterpreter(code_blocks, settings)
    
    def gen_entities(self):
    
        return self.interpreter.gen_entities()

    def gen_scrapers(self):
    
        return self.interpreter.gen_scrapers()
Beispiel #2
0
class Generator(object):

    def __init__(self, dsl_template, settings):

        analzier = DSLAnalizer(dsl_template)
        code_blocks = analzier.parse()
        self.interpreter = DSLInterpreter(code_blocks, settings)

    def gen_entities(self):

        return self.interpreter.gen_entities()

    def gen_scrapers(self):

        return self.interpreter.gen_scrapers()
Beispiel #3
0
 def __init__(self, dsl_template, settings):
     
     analzier = DSLAnalizer(dsl_template)
     code_blocks = analzier.parse()
     self.interpreter = DSLInterpreter(code_blocks, settings)
Beispiel #4
0
    def __init__(self, dsl_template, settings):

        analzier = DSLAnalizer(dsl_template)
        code_blocks = analzier.parse()
        self.interpreter = DSLInterpreter(code_blocks, settings)