Changeset 7c3fb9b in mainline for uspace/app/bdsh/tok.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/tok.c
rfac0ac7 r7c3fb9b 97 97 while ((next_char = tok_look_char(tok)) != 0) { 98 98 if (next_char == ' ') { 99 /* Push the token if there is any. 99 /* 100 * Push the token if there is any. 100 101 * There may not be any pending char for a token in case 101 102 * there are several spaces in the input. … … 115 116 116 117 } else if (next_char == '|') { 117 /* Pipes are tokens that are delimiters and should be 118 /* 119 * Pipes are tokens that are delimiters and should be 118 120 * output as a separate token 119 121 */ … … 137 139 } 138 140 } else if (next_char == '\'') { 139 /* A string starts with a quote (') and ends again with a quote. 141 /* 142 * A string starts with a quote (') and ends again with a quote. 140 143 * A literal quote is written as '' 141 144 */ … … 151 154 tok_start_token(tok, TOKTYPE_TEXT); 152 155 } 153 /* If we are handling any other character, just append it to 156 /* 157 * If we are handling any other character, just append it to 154 158 * the current token. 155 159 */
Note:
See TracChangeset
for help on using the changeset viewer.