pyrser/passes/topython.py
def visit_Rep1N(self, node: parsing.Rep0N) -> [ast.stmt]:
        """Generates python code for a clause repeated 1 or more times.

        <code for the clause>
        while True:
            <code for the clause>
        """
        clause = self.visit(node.pt)
        if isinstance(clause, ast.expr):
            return (self._clause(clause) + self.visit_Rep0N(node))
        self.in_loop += 1
        clause = self._clause(self.visit(node.pt))
        self.in_loop -= 1
        return self._clause(self.visit(node.pt)) + [
            ast.While(ast.Name('True', ast.Load()), clause, [])]
def visit_Rep1N(self, node: parsing.Rep0N) -> [ast.stmt]:
        clause = self.visit(node.pt)
        if isinstance(clause, ast.expr):
            return (self._clause(clause) + self.visit_Rep0N(node))
        self.in_loop += 1
        clause = self._clause(self.visit(node.pt))
        self.in_loop -= 1
        return self._clause(self.visit(node.pt)) + [
            ast.While(ast.Name('True', ast.Load()), clause, [])]
def visit_Rep1N ( self , node : parsing . Rep0N ) -> [ ast . stmt ] : clause = self . visit ( node . pt ) if isinstance ( clause , ast . expr ) : return ( self . _clause ( clause ) + self . visit_Rep0N ( node ) ) self . in_loop += 1 clause = self . _clause ( self . visit ( node . pt ) ) self . in_loop -= 1 return self . _clause ( self . visit ( node . pt ) ) + [ ast . While ( ast . Name ( 'True' , ast . Load ( ) ) , clause , [ ] ) ]
Generates python code for a clause repeated 1 or more times.

        <code for the clause>
        while True:
            <code for the clause>
Generates python code for a clause repeated 1 or more times .