Struct pio_parser::Parser [−][src]
pub struct Parser<const PROGRAM_SIZE: usize>;Implementations
pub fn parse_file(
source: &str
) -> Result<Vec<ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>>, ParseError<usize, Token<'_>, &'static str>>
pub fn parse_file(
source: &str
) -> Result<Vec<ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>>, ParseError<usize, Token<'_>, &'static str>>
Parse a PIO “file”, which contains some number of PIO programs
separated by .program directives.
pub fn parse_program(
source: &str
) -> Result<ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>, ParseError<usize, Token<'_>, &'static str>>
pub fn parse_program(
source: &str
) -> Result<ProgramWithDefines<HashMap<String, i32>, PROGRAM_SIZE>, ParseError<usize, Token<'_>, &'static str>>
Parse a single PIO program, without the .program directive.
