Turn strs into chars where possible
This commit is contained in:
parent
73e32252c4
commit
5466f7afbf
6 changed files with 24 additions and 24 deletions
|
|
@ -14,11 +14,11 @@ use super::var::var;
|
|||
fn atom_paren(
|
||||
expr: impl Parser<char, Expr, Error = Error> + Clone,
|
||||
) -> impl Parser<char, Expr, Error = Error> {
|
||||
just("(")
|
||||
just('(')
|
||||
.ignore_then(space())
|
||||
.then(expr)
|
||||
.then(space())
|
||||
.then_ignore(just(")"))
|
||||
.then_ignore(just(')'))
|
||||
.map_with_span(|((s0, inner), s1), span| Expr::Paren {
|
||||
s0,
|
||||
inner: Box::new(inner),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue