Struct analisar::Parser [−][src]
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]
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,
pub 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.
pub 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>,