Add initial CLI

This commit is contained in:
Hugo Mårdbrink 2025-08-07 17:42:21 +02:00
parent 5a77cc3bdf
commit dd9831f1b5
4 changed files with 216 additions and 15 deletions

View file

@ -27,7 +27,7 @@ ParseError :: enum {
SequenceType :: enum {
Head,
Or,
And
And,
}
Command :: struct {
@ -214,7 +214,7 @@ parse :: proc(input: string) -> (cmd_seq: CommandSequence, err: ParseError) {
cur_pipe_seq = cur_pipe_seq,
cur_cmd = cur_cmd,
tokens = c_tokens,
token_idx = 1
token_idx = 1,
}
for parser_state.token_idx < len(parser_state.tokens) {