25 lines
398 B
Plaintext
25 lines
398 B
Plaintext
%token HELP VERSION
|
|
%token TUI ENABLE
|
|
%token LEVENSTEIN
|
|
%{
|
|
#include "cli.hpp"
|
|
%}
|
|
%%
|
|
histui_args: global_args verb_and_args
|
|
;
|
|
|
|
global_args: %empty
|
|
| HELP { usage(); exit(0); }
|
|
| VERSION { version(); exit(0); }
|
|
;
|
|
|
|
verb_and_args: ENABLE { enable(); exit(0); }
|
|
| TUI tui_args { ; }
|
|
;
|
|
|
|
tui_args: %empty
|
|
| LEVENSTEIN { ; }
|
|
;
|
|
|
|
%%
|