Struct analisar::Parser[][src]

pub struct Parser<'a> { /* fields omitted */ }

This parser will provide an AST without any whitespace or comment context provided.

Implementations

impl<'a> Parser<'a>[src]

pub fn new(bytes: &'a [u8]) -> Self[src]

Construct a new parser with the provided bytes of lua

pub fn next(&mut self) -> Option<Result<Statement<'a>, Error>>[src]

Get the next lua statement from the lua text provided

pub fn block(&mut self) -> Result<Block<'a>, Error>[src]

Calling this at the top level of a file will end up parsing the entire file. If you want logical sections of that file, use Parser::next instead

Auto Trait Implementations

impl<'a> RefUnwindSafe for Parser<'a>[src]

impl<'a> Send for Parser<'a>[src]

impl<'a> Sync for Parser<'a>[src]

impl<'a> Unpin for Parser<'a>[src]

impl<'a> UnwindSafe for Parser<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.