[−][src]Struct ocarina::parser::Parser
Methods
impl Parser
[src]
pub fn new(query: String) -> Parser
[src]
init a parser, that is working with a single query TODO access the need for changing or modifing the query inside the parser from some public methods, in order to just have one parser that can be used multiple times.
pub fn set_new_query(&mut self, new_query: String)
[src]
Overwrite the current values in order to process a new query this includes the vectors as well as the set query. TODO check the "runtime complexity"
pub fn split_query(&mut self)
[src]
split the query based on the white space in between. Will later be further processed in in order to generate a realtion between used keywords and their trailing data.
pub fn find_keywords(&mut self)
[src]
search for keywords and their index in the query, so that we can split the query apart based on the keywords position and its following arguments.
Calls build_expressions_from_keywords in order to combine the keyword with the data to an
expression
Auto Trait Implementations
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,