Esempio n. 1
0
 def __init__(self, optionsdict):
     from pydsl.Memory.Storage.Loader import load_grammar
     #import pydsl.GlobalConfig
     #pydsl.GlobalConfig.GLOBALCONFIG.strictgrammar = True
     UnixProgram.__init__(self, optionsdict)
     self.__sgrammar = load_grammar(optionsdict.sgrammar) 
Esempio n. 2
0
 def test_grammars(self):
     grammarlist = self.glibrary.all_names()
     from pydsl.Memory.Storage.Loader import load_grammar
     for grammar in grammarlist:
         load_grammar(grammar)
Esempio n. 3
0
 def __init__(self, name, definitionrequirementsdic, boundariesrules):
     TerminalSymbol.__init__(self, name, 49, boundariesrules)
     self.grammarname = definitionrequirementsdic["grammarname"]
     from pydsl.Memory.Storage.Loader import load_grammar, load_checker
     grammar = load_grammar(self.grammarname)
     self.checker =  load_checker(grammar)