2 * Copyright © 2016 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
16 #include <ao_scheme.h>
18 static void scheme_cmd(void) {
19 ao_scheme_read_eval_print(stdin, stdout, false);
22 static const struct ao_cmds blink_cmds[] = {
23 { scheme_cmd, "l\0Run scheme interpreter" },
30 static uint8_t at_eol;
34 ao_cmd_readline(ao_scheme_read_list ? "Λ " : "λ ");
37 c = (unsigned char) ao_cmd_lex();
52 ao_cmd_register(blink_cmds);