europalang / Europa-Lang

A fun and simple language with NO classes whatsoever!
MIT License
22 stars 5 forks source link

Add features to REPL #27

Closed 19wintersp closed 2 years ago

19wintersp commented 2 years ago

Add enhanced line editing, multi-line editing, bracket pair checking, history, history file ("~/.europa_history" on Unix, "%USERPROFILE%/.europa_history" on Windows), evaluated expression returning in REPL, and allows missing semicolon before EOF.

Also adds as dependency Rustyline 9.1 (101kB) for these features.

Allows future expansion with hints, completion and syntax highlighting.

Addresses #25 and some of #26.