

def sint_ast(self, last_begin, ast):
    end = self.parser.input.position
    full = ''.join(self.parser.input.data)
    text = full[last_begin:end]
    line = ((full[:last_begin].count('\n') + self.line_offset) + 2)
    node = ASTNode(ast, text, line, 0, line, 0)
    return node

dataset/ETHPy150Open thiago-silva/memetalk/sugarfoot/pyparsers/astbuilder.py ASTBuilder.sint_ast/original