pub struct Parser<'a> { /* private fields */ }Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(tokens: &'a [Token]) -> Self
pub fn parse(&mut self) -> Program
Sourcepub fn parse_word_for_expansion(&mut self) -> Word
pub fn parse_word_for_expansion(&mut self) -> Word
Parse a single word for re-expansion of operator arguments.
frost-expand calls this to recursively expand the word of a
${var:-word} / ${var:=word} / ${var:?word} form, where word
may itself contain $other, ${nested}, $(cmd), $((expr)) and
quoting. Reusing the real word parser keeps a single expansion path.
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnsafeUnpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more