Skip to content

Conversation

@MarcellPerger1
Copy link
Owner

@MarcellPerger1 MarcellPerger1 commented Nov 9, 2024

  • Add AST generation, fixes Add AST generator #33
  • Run tests/fuzzing on Python 3.10 as well
  • More tests are required!

MarcellPerger1 and others added 30 commits November 5, 2024 18:11
Expr handling in a later/next commit
TODO: Implement all the TODOs
(Use Enum instead of the 3.11+ StrEnum)
(gh mobile can only input floats as workflow args, so accept float, then convert to int)
@MarcellPerger1
Copy link
Owner Author

Coverage right now:
All files:
image
Functions in AST:
image

@MarcellPerger1
Copy link
Owner Author

Tests for eval_literal.py are good enough - these are the only uncovered lines:

Lines Reason
This code path will only happen if there's a bug in NumberParser
None of the code uses this part of this internal method (it's just there for consistency/future use for now)

@MarcellPerger1
Copy link
Owner Author

This code path will only happen if there's a bug in NumberParser

This should probably be pragma: no covered

@MarcellPerger1
Copy link
Owner Author

This code path will only happen if there's a bug in NumberParser

This should probably be pragma: no covered

^^ Done in 19b66a2

@MarcellPerger1
Copy link
Owner Author

The remaining uncovered functions are all internal or one-liners
image

@MarcellPerger1 MarcellPerger1 merged commit aebd6c3 into main Nov 12, 2024
@MarcellPerger1 MarcellPerger1 deleted the start-ast branch November 12, 2024 18:41
@MarcellPerger1
Copy link
Owner Author

Finally done, branch deleted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-AST Area: Abstract Syntax Tree generation (AST) T-feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AST generator

2 participants