Skip to content
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

add :load command to REPLs (clox and jlox) #9

Open
zxul767 opened this issue Nov 6, 2022 · 2 comments
Open

add :load command to REPLs (clox and jlox) #9

zxul767 opened this issue Nov 6, 2022 · 2 comments
Labels
enhancement New feature or request p0

Comments

@zxul767
Copy link
Owner

zxul767 commented Nov 6, 2022

the :load command would take a single parameter: the path to a lox source file.

as a bonus, we might configure the line readers in each REPL to autocomplete source files

@zxul767
Copy link
Owner Author

zxul767 commented Nov 9, 2022

Update: clox now has support for the :load command, which accepts both absolute and relative paths.

@zxul767 zxul767 added the enhancement New feature or request label Nov 11, 2022
@zxul767 zxul767 added the p0 label Dec 7, 2022
@zxul767
Copy link
Owner Author

zxul767 commented Dec 7, 2022

marked as p0 because jlox doesn't have an implementation yet and it is definitely very painful to debug large programs in jlox otherwise (one can always run the script, but it's not possible to interact in the REPL session that way)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p0
Projects
None yet
Development

No branches or pull requests

1 participant