Function oursh::program::parse_primary[][src]

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]);