|
Quash Shell
0.1
A simple yet powerfull shell program
|
Defines an interface between c and the parser. This file is also responsible for defining many of the structures used by the parser. More...
Go to the source code of this file.
Classes | |
| struct | Redirect |
| Intermediate parsing structure used to determine the final configuration of the redirects in a command. More... | |
Typedefs | |
| typedef struct Redirect | Redirect |
| Intermediate parsing structure used to determine the final configuration of the redirects in a command. | |
Functions | |
| Redirect | mk_redirect (char *in, char *out, bool append) |
| Creates an intermediate Redirect structure and returns a copy. More... | |
| char * | interpret_complex_string_token (const char *str) |
| Clean up a string by removing escape symbols and unescaped single quotes. Also expands any environment variables. More... | |
| CommandHolder * | parse (QuashState *state) |
| Handles the call to the parser and provides a string equivalent of the Command structure to QuashState. More... | |
| void | destroy_parser () |
| Cleanup memory dynamically allocated by the parser. | |
Defines an interface between c and the parser. This file is also responsible for defining many of the structures used by the parser.
| char* interpret_complex_string_token | ( | const char * | str | ) |
Clean up a string by removing escape symbols and unescaped single quotes. Also expands any environment variables.
| str | The string to clean up |
| Redirect mk_redirect | ( | char * | in, |
| char * | out, | ||
| bool | append | ||
| ) |
Creates an intermediate Redirect structure and returns a copy.
Doxygen_Suppress
| in | A string containing the name of a file to redirect the intput to a command from. This should be NULL if there are not any redirections in. |
| out | A string containing the name of a file to redirect the output of a command to. This should be NULL if there are not any redirections out. |
| append | Should the redirect out append or truncate a file. True if append, false if truncate. |
| CommandHolder* parse | ( | QuashState * | state | ) |
Handles the call to the parser and provides a string equivalent of the Command structure to QuashState.
| [out] | state | The state of the quash shell. The parsed_str member of QuashState is set to the stringified command structure. |
1.8.11