summaryrefslogtreecommitdiff
path: root/src/ao_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ao_cmd.c')
-rw-r--r--src/ao_cmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ao_cmd.c b/src/ao_cmd.c
index e3f85bc9..81a52708 100644
--- a/src/ao_cmd.c
+++ b/src/ao_cmd.c
@@ -171,6 +171,20 @@ ao_cmd_decimal(void)
ao_cmd_status = r;
}
+uint8_t
+ao_match_word(__code char *word)
+{
+ while (*word) {
+ if (ao_cmd_lex_c != *word) {
+ ao_cmd_status = ao_cmd_syntax_error;
+ return 0;
+ }
+ word++;
+ ao_cmd_lex();
+ }
+ return 1;
+}
+
static void
eol(void)
{