test(parser): rename definitions to definition and more tests

This commit is contained in:
rvcas
2023-07-03 14:58:04 -04:00
parent baf807ca2d
commit 6b05d6a91e
28 changed files with 337 additions and 362 deletions

View File

@@ -2,7 +2,7 @@ use chumsky::prelude::*;
use crate::{
ast,
parser::{definitions, error::ParseError, token::Token},
parser::{definition, error::ParseError, token::Token},
};
pub fn parser() -> impl Parser<Token, ast::UntypedClauseGuard, Error = ParseError> {
@@ -17,7 +17,7 @@ pub fn parser() -> impl Parser<Token, ast::UntypedClauseGuard, Error = ParseErro
location: span,
});
let constant_parser = definitions::constant::value().map(ast::ClauseGuard::Constant);
let constant_parser = definition::constant::value().map(ast::ClauseGuard::Constant);
let block_parser = r
.clone()