def Expression(self): g = self.Term() first = True while self.WeakSeparator(Scanner.bar_Sym, 19, 20): g2 = self.Term() if first: Graph.MakeFirstAlt(g) first = False Graph.MakeAlternative(g, g2) return g
def TokenExpr(self): g = self.TokenTerm() first = True while self.WeakSeparator(Scanner.bar_Sym, 6, 7): g2 = self.TokenTerm() if first: Graph.MakeFirstAlt(g) first = False Graph.MakeAlternative(g, g2) return g