Expand description
Shell reader/parser. Parses a string into a shell command. Roughly a subset of https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html
Structsยง
- ParseState ๐
- ParsedJob 
- A list of commands to run in a pipe as a job.
Enumsยง
- SeqType ๐
- Type of the current sequence being parsed.
Functionsยง
- char_to_ ๐hex_ num 
- consume_whitespace ๐
- escape_to_ ๐char 
- Read an ascii char from 0x00-0x7F endowed in a string as โ\xXXโ where X is single hex digit.
- parse_line 
- parse_line_ ๐inner 
- push_next_ ๐seq_ item 
- push_next_ ๐seq_ run 
- read_arg ๐
- read_chars_ ๐until 
- read_simple_ ๐string 
- Read string surrounded by single quote (โ). Assumes chars is on the open quote and consumes the end quote. This simply reads the chars until the next โ and puts them in a String Arg. Note, can not produce a string containing a โ character.
- read_special_ ๐arg 
- read_string ๐
- Read string surrounded by quote (โ). Assumes chars is on the open quote and consumes the end quote. This version will handle interpolation and escape chars.
- read_token ๐
- read_utf_ ๐scalar 
- Read a UTF8 codepoint encoded in a string with โ\uXXXXXXXXโ or \u{XXXXXXXX}โ where X is a single hex digit. There can be 1-8 hex values (X- a nibble) in the encoding (Up to 4 bytes).