-
Notifications
You must be signed in to change notification settings - Fork 25
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
Allow files to be loaded from the REPL #17
Comments
One thing that might complicate this is that we currently parse REPL commands as part of the main grammar: pikelet/src/syntax/parse/grammar.lalrpop Lines 58 to 87 in 770959b
It will complicate things because we'll also need to include a 'file path' token in the lexer, which feels a little excessive. One way to hack around this until we find a better solution would be to use Including the repl stuff in the main parser has always felt a tad unpleasant though, especially the way we match on the command names. Not sure of a better solution though... |
Currently, |
I'm wondering if |
We should be able to load files in the REPL, either when passing a list of filenames on startup, or by a
:load
/:l
command while the REPL is running:We should also be able to reload files using
:reload
/:r
:The text was updated successfully, but these errors were encountered: