@designliquido/delegua
    Preparing search index...

    Class TradutorReversoPython

    Tradutor reverso de Python para Delégua. Utiliza o ecossistema do ANTLR para percorrer código em Python e traduzir para Delégua.

    Implements

    • Python3Listener
    Index

    Constructors

    Properties

    inputStream: CodePointCharStream
    lexer: Python3Lexer
    parser: Python3Parser
    resultado: string
    tokenStream: CommonTokenStream

    Methods

    • Enter a parse tree produced by Python3Parser.expr.

      Parameters

      • ctx: ExprContext

        the parse tree

      Returns void

    • Enter a parse tree produced by Python3Parser.expr_stmt.

      Parameters

      • ctx: Expr_stmtContext

        the parse tree

      Returns void

    • Aqui é preciso contar se o contexto tem filhos. Há alguns casos em que este código é executado mais de uma vez por algum motivo.

      Parameters

      • ctx: Simple_assignContext

        O contexto da atribuição.

      Returns void

    • Exit a parse tree produced by Python3Parser.expr.

      Parameters

      • ctx: ExprContext

        the parse tree

      Returns void

    • Aparentemente é o melhor lugar para escrever quebras de linha.

      Parameters

      • ctx: StmtContext

        Contexto da instrução.

      Returns void