Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stampa errata dell' ast #18

Closed
L0P0P opened this issue Jul 2, 2024 · 1 comment · Fixed by #19
Closed

Stampa errata dell' ast #18

L0P0P opened this issue Jul 2, 2024 · 1 comment · Fixed by #19
Assignees

Comments

@L0P0P
Copy link
Collaborator

L0P0P commented Jul 2, 2024

Quando si prova a stampare l'ast di un codice come, ad esempio:

m = 1
for i in range(10):
    m = m + 1

L'ast del blocco del for viene stampato come:

Block
  SimpleStmts
    SimpleStmt
      Assignment
        ExprList
          Expr
            Atom(m)
          Augassign(=)
          ExprList
            Expr
              Atom(1)
            Op(+)

Ovvero, mostra solo il primo elemento dell' ExprList a destra dell'assegnamento (a questo punto probabilmente stampa sempre e solo il primo elemento in ogni caso).

@L0P0P
Copy link
Collaborator Author

L0P0P commented Jul 2, 2024

Risolto

@L0P0P L0P0P closed this as completed Jul 2, 2024
@L0P0P L0P0P self-assigned this Jul 2, 2024
@L0P0P L0P0P linked a pull request Jul 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant