Work in progress

This commit is contained in:
2020-04-28 03:18:05 +02:00
parent 0fb2be4897
commit 66ac57c5b8
3 changed files with 56 additions and 39 deletions

View File

@@ -3,10 +3,7 @@ use super::tokens::*;
pub fn parse_term(input: &str) -> Result<crate::Term, crate::parse::Error>
{
let term_str = TermStr::new(input);
term_str.parse(0)?;
// TODO: implement correctly
Ok(crate::Term::true_())
term_str.parse(0)
}
pub(crate) fn function_name(input: &str) -> Option<(&str, &str)>