Retoor software development Projects Research SearchXNG
Register Sign In

4 lines
37 B
C
Raw Normal View History

Start writing the REPL in Wren. It doesn't actually execute code yet, but it: - Supports left and right arrow keys for moving the cursor. - Ctrl-C, Ctrl-D, Ctrl-A, and Ctrl-E for navigating. - Syntax highlights the line (!). The next step is to do a rough parse so that we can tell if the line is an expression, statement, or needs more input. That will tell us whether we need to interpret it at the top level (statement) and not worry about a result, evaluate it as an expression and print the result, or read more lines.
2016-05-21 05:30:09 +02:00
#include "repl.h"
#include "wren.h"
Reference in New Issue Copy Permalink
201ae2f38a
wren/src/module/repl.c
Response time: 81ms
Mail Licenses API