mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
debug: worddesc show more information
This seems appropriate since worddescs are getting more and more complex: markers, flags, tokentypes, ...
This commit is contained in:
parent
6576c47b56
commit
4d6a64bf6a
9 changed files with 83 additions and 25 deletions
26
test.sh
26
test.sh
|
|
@ -579,8 +579,32 @@ hello hi
|
|||
EOF
|
||||
|
||||
when_run <<EOF "quoted parentheses are not operators"
|
||||
.debug
|
||||
.exec
|
||||
echo unclosed '('
|
||||
EOF
|
||||
todo
|
||||
expecting <<EOF
|
||||
[dbg: 1]
|
||||
[exec: 0]
|
||||
╰─ t_simple_cmd
|
||||
├─ line = 0
|
||||
├─ t_wordlist
|
||||
│ ├─ t_worddesc
|
||||
│ │ ├─ word = [echo]
|
||||
│ │ ├─ marker = [ ]
|
||||
│ │ ├─ flags = 0
|
||||
│ │ ╰─ t_token_type = WORD_TOKEN
|
||||
│ ├─ t_worddesc
|
||||
│ │ ├─ word = [unclosed]
|
||||
│ │ ├─ marker = [ ]
|
||||
│ │ ├─ flags = 0
|
||||
│ │ ╰─ t_token_type = WORD_TOKEN
|
||||
│ ╰─ t_worddesc
|
||||
│ ├─ word = ['(']
|
||||
│ ├─ marker = [ ' ]
|
||||
│ ├─ flags = 2
|
||||
│ ╰─ t_token_type = WORD_TOKEN
|
||||
╰─ redirections = (empty redir list)
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue