-
Biblioteca solo de encabezado
-
Permite implementar un REPL simple registrando funciones como comandos
register_command(add, "add", "Add two numbers");
register_command(&Arithmetic::inc, "inc", "Increment a number");
→ Agrega las funciones add e inc como comandos
[Pantalla de funcionamiento]
help
add Add two numbers
inc Increment a number
help Show this help
add 3 4
7
inc 21
22
add 3 4 5
Error: expected 2 arguments; got 3
Aún no hay comentarios.