Refactor get_uplc_type to account for constr types that don't exactly resolve to a uplc type
Check arg_stack in uplc generator has only 1 argument at the end of the generation
warning fixes
This commit is contained in:
microproofs
2024-04-25 16:55:01 +02:00
committed by Kasey
parent 1091eba3c3
commit fc0e88018e
37 changed files with 268 additions and 251 deletions

View File

@@ -8,10 +8,10 @@ use chumsky::prelude::*;
pub fn parser(
r: Recursive<'_, Token, UntypedExpr, ParseError>,
) -> impl Parser<Token, UntypedExpr, Error = ParseError> + '_ {
select! {Token::Name { name } if &name == PRELUDE => name}
select! {Token::Name { name } if name == PRELUDE => name}
.then_ignore(just(Token::Dot))
.or_not()
.then_ignore(select! {Token::UpName { name } if &name == PAIR => name})
.then_ignore(select! {Token::UpName { name } if name == PAIR => name})
.ignore_then(
r.clone()
.separated_by(just(Token::Comma))