[][src]Trait rsql::parser::Parser

pub trait Parser {
    type R: RuleType;
    fn get_inner_mut(&mut self) -> &mut HashMap<String, Comparison>;
fn get_inner(&self) -> &HashMap<String, Comparison>;
fn register_comparison(&mut self, comparison: &Comparison);
fn remove_comparison_by_symbol(&mut self, symbol: &str);
fn get_comparison(&self, symbol: &str) -> Option<Comparison>;
fn parse_to_node(&self, code: &str) -> Result<Expr, ParserError>;
fn parse_comparison(
        &self,
        value: Pair<Self::R>
    ) -> Result<Comparison, ParserError>;
fn parse_constraint(
        &self,
        value: Pair<Self::R>
    ) -> Result<Constraint, ParserError>;
fn parse_operator(
        &self,
        value: Pair<Self::R>
    ) -> Result<Operator, ParserError>;
fn parse_expr(&self, value: Pair<Self::R>) -> Result<Expr, ParserError>; }

Associated Types

type R: RuleType

Loading content...

Required methods

fn get_inner_mut(&mut self) -> &mut HashMap<String, Comparison>

fn get_inner(&self) -> &HashMap<String, Comparison>

fn register_comparison(&mut self, comparison: &Comparison)

fn remove_comparison_by_symbol(&mut self, symbol: &str)

fn get_comparison(&self, symbol: &str) -> Option<Comparison>

fn parse_to_node(&self, code: &str) -> Result<Expr, ParserError>

fn parse_comparison(
    &self,
    value: Pair<Self::R>
) -> Result<Comparison, ParserError>

fn parse_constraint(
    &self,
    value: Pair<Self::R>
) -> Result<Constraint, ParserError>

fn parse_operator(&self, value: Pair<Self::R>) -> Result<Operator, ParserError>

fn parse_expr(&self, value: Pair<Self::R>) -> Result<Expr, ParserError>

Loading content...

Implementors

impl Parser for FiqlParser[src]

type R = Rule

impl Parser for RsqlParser[src]

type R = Rule

Loading content...