Skip to content

Extended the REPL to print out expression value#167

Merged
olwmc merged 2 commits intodev-1.0.0from
repl-extended
Apr 24, 2022
Merged

Extended the REPL to print out expression value#167
olwmc merged 2 commits intodev-1.0.0from
repl-extended

Conversation

@olwmc
Copy link
Copy Markdown
Collaborator

@olwmc olwmc commented Apr 24, 2022

The REPL now prints out the value, if available, of any expression entered.

Examples:

> 1+2
3
> let x = 5.
> x == 6
False
> x == 5
True
> x == 11 or 1 == 1.
True.
> function foo 
.    with x:%string do
.        "Altered " + x.
.    end
> foo("asteroid").
Altered asteroid
> foo("string") + " !"
Altered string !

@olwmc olwmc requested a review from lutzhamel April 24, 2022 18:05
@olwmc olwmc changed the base branch from master to dev-1.0.0 April 24, 2022 18:05
@olwmc olwmc closed this Apr 24, 2022
@olwmc
Copy link
Copy Markdown
Collaborator Author

olwmc commented Apr 24, 2022

Need to fix something quickly

@olwmc olwmc reopened this Apr 24, 2022
Copy link
Copy Markdown
Collaborator

@lutzhamel lutzhamel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@olwmc olwmc merged commit fe3269e into dev-1.0.0 Apr 24, 2022
@olwmc olwmc deleted the repl-extended branch May 1, 2022 00:42
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