Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/m/i/MiniParse-0.2.0/MiniParse/Meta/Drawable/Builder.py   MiniParse(Download)
from Syntax import Syntax
from Rule import Rule
from Alternative import Alternative
from Sequence import Sequence
from Repetition import Repetition
    def makeAlternative(self, elems):
        return self.__simplify(Alternative(elems))
 
    def makeSequence(self, elems):
        return self.__simplify(Sequence(elems))
    def makeOptional(self, x):
        return self.__simplify(Alternative([Null, x]))
 
    def makeTerminal(self, value):
        return self.__simplify(Terminal(value))