Skip to main content

shrub_parser/parser/
winnow_str.rs

1//! String-based winnow parser
2
3use winnow::error::ContextError;
4
5use crate::ast;
6use crate::parser::{ParserOptions, SourceInfo};
7
8/// Type alias for parser error
9type PError = winnow::error::ErrMode<ContextError>;
10
11/// Parse a shell program from a string with full source location tracking
12///
13/// This is not yet implemented.
14pub fn parse_program(
15    _input: &str,
16    _options: &ParserOptions,
17    _source_info: &SourceInfo,
18) -> Result<ast::Program, PError> {
19    unimplemented!("winnow string parser is not yet implemented")
20}