AdeptLanguage / Adept

The Adept Programming Language
GNU General Public License v3.0
121 stars 9 forks source link

[idea] Adept REPL #9

Closed ghost closed 4 years ago

ghost commented 4 years ago

@IsaacShelton What do you think about that?

IsaacShelton commented 4 years ago

@t0md3an I'm not sure how well Adept would work as a REPL, but it would be cool. Maybe in the future I'll add it.

IsaacShelton commented 4 years ago

@t0md3an I've added a basic REPL, although there are almost guaranteed to be issues. You can do adept --repl to launch it.

#halt - Quit #reset - Reset REPL #clear - Clear screen #undo - Undo last change

Lines ending in \ will be added to the previous line. If the code starts with func, import, foreign, struct, or pragma then the code will be added to the global scope.

Screen Shot 2020-09-05 at 2 40 29 PM