Skip to content

Parse interactive single input with its own start rule - #10

Merged
youknowone merged 1 commit into
RustPython:rustpython-0.17.5from
youknowdot:rustpython-interactive-single-input
Nov 30, 2026
Merged

youknowone merged 1 commit into
RustPython:rustpython-0.17.5from
youknowdot:rustpython-interactive-single-input

Conversation

@youknowdot

Copy link
Copy Markdown

Summary

Add an interactive single start rule and an interactive EOF token sequence, rather than making the compiler infer a compound-statement terminator after module parsing. Honor the caller's implied-dedent option in the token feed. Leave module and expression parsing on their existing paths.

This is the parser half of the RustPython #10044 follow-up. The implementation follows the CPython 3.15.2 interactive grammar and EOF handling.

Validation

  • Focused parser checks cover inline and indented suites, nested dedents, following statements and unchanged module parsing.
  • With the RustPython integration on Linux, 264 of 4,280 observations newly match CPython 3.15.2 exactly and no previously exact observation regressed. Diagnostic differences remain.
  • RustPython's existing compile snippet and selected canonical syntax, codeop, symtable, compile, and REPL tests passed with their skips; full CI and performance are unverified.

Assisted by Codex.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 144ca6e2-15f9-4c15-8f0e-6d71dca93a16

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@youknowone
youknowone marked this pull request as ready for review November 30, 2026 11:43
@youknowone
youknowone merged commit bd0bb62 into RustPython:rustpython-0.17.5 Nov 30, 2026
44 of 67 checks passed
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.

2 participants