[−][src]Struct sixtyfps_compilerlib::parser::DefaultParser
Implementations
impl DefaultParser
[src]
pub fn new(source: String) -> Self
[src]
Constructor that create a parser from the source code
pub fn consume_ws(&mut self)
[src]
Consume all the whitespace
Trait Implementations
impl From<Vec<Token>> for DefaultParser
[src]
impl Parser for DefaultParser
[src]
fn start_node_impl(
&mut self,
kind: SyntaxKind,
checkpoint: Option<Self::Checkpoint>,
_: NodeToken
)
[src]
&mut self,
kind: SyntaxKind,
checkpoint: Option<Self::Checkpoint>,
_: NodeToken
)
fn finish_node_impl(&mut self, _: NodeToken)
[src]
fn nth(&mut self, n: usize) -> Token
[src]
Peek the n'th token, not including whitespaces and comments
fn consume(&mut self)
[src]
Consume the current token
fn error(&mut self, e: impl Into<String>)
[src]
Reports an error at the current token location
type Checkpoint = Checkpoint
fn checkpoint(&mut self) -> Self::Checkpoint
[src]
#[must_use = "The node will be finished when it is dropped"]fn start_node(&mut self, kind: SyntaxKind) -> Node<'_, Self>
[src]
#[must_use = "The node will be finished when it is dropped"]fn start_node_at(
&mut self,
checkpoint: Self::Checkpoint,
kind: SyntaxKind
) -> Node<'_, Self>
[src]
&mut self,
checkpoint: Self::Checkpoint,
kind: SyntaxKind
) -> Node<'_, Self>
fn peek(&mut self) -> Token
[src]
fn expect(&mut self, kind: SyntaxKind) -> bool
[src]
fn test(&mut self, kind: SyntaxKind) -> bool
[src]
fn until(&mut self, kind: SyntaxKind)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DefaultParser
impl !Send for DefaultParser
impl !Sync for DefaultParser
impl Unpin for DefaultParser
impl !UnwindSafe for DefaultParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,