def cb_parse(self, tokens): assert len(tokens) == 1 i = self.dct_str_inv[tokens[0]] reg = self.dct_expr[i] result = AstId(reg) return result
def cb_parse_id(tokens): assert len(tokens) == 1 reg = tokens[0] return AstId(reg)
def cb_parse(self, tokens): assert len(tokens) == 1 i = self.str.index(tokens[0]) reg = self.expr[i] result = AstId(reg) return result