Function oursh::program::parse_primary
source · pub fn parse_primary<R: BufRead>(reader: R) -> Result<PrimaryProgram>
Expand description
Parse a program of the primary type.
Examples
use oursh::program::parse_primary;
parse_primary(b"ls | wc" as &[u8]);