diff options
Diffstat (limited to 'lib/grammar_sandbox.c')
| -rw-r--r-- | lib/grammar_sandbox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c index 315bd4d59c..0779f23060 100644 --- a/lib/grammar_sandbox.c +++ b/lib/grammar_sandbox.c @@ -68,7 +68,12 @@ DEFUN (grammar_test, cmd->func = NULL; // parse the command and install it into the command graph - command_parse_format (nodegraph, cmd); + struct graph *graph = graph_new(); + struct cmd_token *token = new_cmd_token (START_TKN, CMD_ATTR_NORMAL, NULL, NULL); + graph_new_node (graph, token, (void (*)(void *)) &del_cmd_token); + + command_parse_format (graph, cmd); + cmd_merge_graphs (nodegraph, graph, +1); return CMD_SUCCESS; } |
