-
Notifications
You must be signed in to change notification settings - Fork 158
Swift: REPL added #239
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
base: master
Are you sure you want to change the base?
Swift: REPL added #239
Conversation
@MatsMoll - started an REPL. |
c893237
to
baa7d10
Compare
you might want to consider rebasing this PR onto upstream/master to avoid rewriting all that history... |
You know what, that sounds like a great idea. I'm not really sure how I got my local repo so out of sync though. @Spongman, I'm not great with git. I should be able to just do a rebase and place my changes as the most recent commit? |
yeah, you should be able to do something like: git stash # save any changes in your working dir
git fetch --all # sync with the server
git checkout master # switch to local master branch
git reset --hard origin/master # sync with your github repo
git rebase upstream/master # rebase your changes onto the upstream branch
git push -f # force-push to your github repo
git stash pop # restore your working dir changes I use these defaults, ymmv:
|
Thank you, I'll give that a try. |
`REPL` for Monkey language prints a list of tokens. `evaluate()` function added to `Lexer` to make processing a line from the `REPL` cleaning in `main`.
Ended up deleting my local, cloning from Prime's repo, applying my changes, committing, and pushing this to my fork. I had not done all that much so it seemed easiest. Should have fixed the history problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done @BuggusMageevers 🚀
Added initial REPL. Needs a little work yet before merge: adds multiple EOF's currently. However, the token's produced are otherwise correct and the REPL can be exited with "quit".