Bug 471376 - REPL
Summary: REPL
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Golo (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2015-06-29 16:13 EDT by Julien Ponge CLA
Modified: 2016-05-25 10:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Ponge CLA 2015-06-29 16:13:51 EDT
(from https://github.com/golo-lang/golo-lang/issues/199)

t would be awesome to have a REPL (read eval print loop, i.e. an interactive interpreter) for Golo.

For simple single-line expressions, a simple while true readln + EvaluationEnvironment.run could do the trick, but being able to define functions, structures and augments in this top level repl would be very valuable.



I’ve already done some tests, but it’s a lot less obvious than it first seems…

* an anonymous module must be built incrementally
* the main should be to just print the evaluation of the entered expression, of update the module if it is a declaration
* the reader should be contextual, since we would like to be able to enter a definition expression spanning several lines ...