Skip to content

Interactivity #329

Closed
Closed

Description

@certik

Make LPython work in an interactive prompt.

Copy how LFortran does it. We have to remember a symbol table, and compile each prompt as we go. LFortran has all the infrastructure, I think it's not difficult to add to LPython.

Activity

  1. deadtik commented on Mar 31, 2023

    @deadtik

    Can I get the documentation for LFortran?

  2. certik commented on Apr 1, 2023

    @certik
    ContributorAuthor
  3. Vipul-Cariappa commented on May 8, 2024

    @Vipul-Cariappa
    Contributor

    We discussed the following during the last meeting:

    Currently, the interactive shell is implemented in LFortran by assigning the parent of a symbol table to the symbol table of the previously executed cell's symbol table. This shadows the previous definition(s). It is advantageous as it allows rewriting symbols. We should try taking a similar approach while implementing the interactive shell for LPython.

    Hopefully, we implement the interactive shell such that it can be shared with multiple frontends, i.e. combine LPython and LFortran's implementation. Try using the same implementation with LC frontend.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions