Skip to content

Commit

Permalink
fix: minor clarification on REPL nature of Ego in the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
tucats committed Jan 3, 2025
1 parent af01060 commit 60bbca6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
12 changes: 0 additions & 12 deletions NEXT STEPS.md

This file was deleted.

13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ Example:
This prints the value 15. You can enter virtually any program statement that will fit on
one line using the interactive command mode. If the line is incomplete due to mismatched
quotes, paraenthesis, or braces, then _Ego_ will prompt for additional lines before
trying to execute the statement(s) entered. To finish entering _Ego_ statements, use
the command `exit`. You can also pipe a program directly to _Ego_, as in
trying to execute the statement(s) entered.

In this mode, _Ego_ maintains the state of all values and variables you create directly
from the command line, including functions you might define. This allows you to interactively
examine values, create functions, execute individual statements, and access packages from
the console in a single session. While not strictly a REPL, this behaves in a very similar
way to a REPL environment. Each time you enter a statement or command, it is compiled
immediately and executing, using all values and functions previously entered into the console.

To finish entering _Ego_ statements, use the command `exit`. You can also pipe a program
directly to _Ego_, as in

```sg
echo 'print 3+5' | ego
Expand Down

0 comments on commit 60bbca6

Please sign in to comment.