Skip to content

Fork a self-contained Python parser and portable bytecode frontend - #5

Closed
deltathedumb wants to merge 17 commits into
mainfrom
develop/self-contained-parser
Closed

Fork a self-contained Python parser and portable bytecode frontend#5
deltathedumb wants to merge 17 commits into
mainfrom
develop/self-contained-parser

Conversation

@deltathedumb

@deltathedumb deltathedumb commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Removes the final source-parsing dependency on CPython for the first executable subset.

  • forks asmpython's Python-authored lexer, parser, AST nodes, and diagnostics into PortaPy
  • removes executable compiler-extension hooks and keeps standard Python syntax only
  • records the pinned upstream parser source
  • makes future parser synchronization manual and reviewed
  • adds a direct PortaPy-AST-to-bytecode lowerer with no host ast import
  • executes literals, names, arithmetic, assignment, functions, calls, and returns through the existing VM
  • fails precisely for unsupported syntax rather than silently falling back to CPython

This is the first self-contained source path. More AST nodes still need to move into the portable frontend before the bootstrap host-ast frontend can be deleted.

@deltathedumb deltathedumb changed the title Audit the standalone Python parser fork Fork a self-contained Python parser and portable bytecode frontend Jul 19, 2026
@deltathedumb
deltathedumb deleted the develop/self-contained-parser branch July 20, 2026 00:56
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 this pull request may close these issues.

1 participant