Skip to content

Velocity is a concurrent REPL for HertzScript coroutines. Code runs concurrently with the REPL.

License

Notifications You must be signed in to change notification settings

hertzscript/Velocity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HertzScript Velocity REPL

NPM

HertzScript Velocity is a concurrent REPL which is designed specifically for HertzScript coroutines. All code runs concurrently alongside the REPL, so you can continue typing/adding code while existing code is still running.

See the HertzScript Specification repository for more information.

Command-Line Interfaces

hzv / hzvelocity

Opens the concurrent HertzScript Velocity REPL which is designed specifically for HertzScript coroutines. The REPL consists of a status bar at the top, a virtual console output window in the middle, and a source code input line at the bottom. Source code is compiled before it is executed, and supports the spawn keyword. All code runs concurrently alongside the REPL, so you can continue typing/adding code while existing code is still running.

  • To run code, simply type it at the bottom and press enter.

  • To scroll the virtual console window up and down, press PageUp and PageDown.

  • To quit press Control+C twice, or type .exit and press enter.

  • To pause or unpause code execution press Control+P, or type .pause and press enter.

  • To terminate all coroutines press Control+R, or type .kill and press enter.

hzr / hzrepl

Opens a non-concurrent synchronous REPL which behaves more like a traditional NodeJS REPL. This REPL lacks a status bar and virtual console window, and runs all code in run-to-completion mode which blocks the REPL until the all code has completed running. If you've started more than one coroutine, this may be harder to use than the concurrent REPL.

  • To run code, simply type it at the bottom and press enter.

  • To quit press Control+C.

About

Velocity is a concurrent REPL for HertzScript coroutines. Code runs concurrently with the REPL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published