pub struct ValkyrieParser<'config> { /* private fields */ }Expand description
Valkyrie parser.
Implementations§
Source§impl<'config> ValkyrieParser<'config>
impl<'config> ValkyrieParser<'config>
Sourcepub fn new(config: &'config ValkyrieLanguage) -> Self
pub fn new(config: &'config ValkyrieLanguage) -> Self
Create a new Valkyrie parser.
Trait Implementations§
Source§impl<'config> Parser<ValkyrieLanguage> for ValkyrieParser<'config>
impl<'config> Parser<ValkyrieLanguage> for ValkyrieParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<ValkyrieLanguage>,
) -> ParseOutput<'a, ValkyrieLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<ValkyrieLanguage>, ) -> ParseOutput<'a, ValkyrieLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl<'config> Freeze for ValkyrieParser<'config>
impl<'config> RefUnwindSafe for ValkyrieParser<'config>
impl<'config> Send for ValkyrieParser<'config>
impl<'config> Sync for ValkyrieParser<'config>
impl<'config> Unpin for ValkyrieParser<'config>
impl<'config> UnsafeUnpin for ValkyrieParser<'config>
impl<'config> UnwindSafe for ValkyrieParser<'config>
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