fix: builtin parsing

This commit is contained in:
rvcas 2022-06-10 11:48:46 -04:00
parent b05f0846a8
commit 2afded2d27
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ peg::parser! {
} }
rule builtin() -> Term<Name> rule builtin() -> Term<Name>
= "(" b:ident() ")" { Term::Builtin(DefaultFunction::from_str(&b).unwrap()) } = "(" _* "builtin" _+ b:ident() _* ")" { Term::Builtin(DefaultFunction::from_str(&b).unwrap()) }
rule var() -> Term<Name> rule var() -> Term<Name>
= n:name() { Term::Var(n) } = n:name() { Term::Var(n) }