pub fn root(input: Span) -> Expression {
    match expressions::expression(input) {
        Ok((_, ast)) => ast,
        _ => panic!("Youhouuu")
    }
}
/// The `root` parser is the axiom of the grammar, i.e. the entry
/// point of all the parsers.
///
/// # Examples
///
/// ```
/// use std::borrow::Cow;
/// use tagua_parser::ast::{
///     Expression,
///     Literal
/// };
/// use tagua_parser::tokens::{
///     Span,
///     Token
/// };
/// use tagua_parser::rules::root;
///
/// # fn main() {
/// let input  = Span::new(b"'Hello, World!'");
/// let output = Expression::Literal(Literal::String(Token::new(Cow::from(&b"Hello, World!"[..]), input)));
///
/// assert_eq!(root(input), output);
/// # }
/// ```
The `root` parser is the axiom of the grammar, i.e. the entry
point of all the parsers.
The ` root ` parser is the axiom of the grammar i . e . the entry point of all the parsers .
pub fn root(input: Span) -> Expression {
    match expressions::expression(input) {
        Ok((_, ast)) => ast,
        _ => panic!("Youhouuu")
    }
}
pub fn root ( input : Span ) -> Expression { match expressions :: expression ( input ) { Ok ( ( _ , ast ) ) => ast , _ => panic ! ( " " ) } }
The `root` parser is the axiom of the grammar, i.e.
The ` root ` parser is the axiom of the grammar i . e .
input
Span
examples
```
use std::borrow::Cow;
use tagua_parser::ast::{
Expression,
Literal
};
use tagua_parser::tokens::{
Span,
Token
};
use tagua_parser::rules::root.
` ` ` use std :: borrow :: Cow ; use tagua_parser :: ast :: { Expression Literal } ; use tagua_parser :: tokens :: { Span Token } ; use tagua_parser :: rules :: root .
fn main() {
let input  = Span::new(b"'Hello, World!'");
let output = Expression::Literal(Literal::String(Token::new(Cow::from(&b"Hello, World!"[..]), input))).

assert_eq!(root(input), output).
let input = Span :: new ( b " ' Hello World! ' " ) ; let output = Expression :: Literal ( Literal :: String ( Token :: new ( Cow :: from ( &b " Hello World! " [ .. ] ) input ))) . assert_eq! ( root ( input ) output ) .
}
None