Work on error messages
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
7f7bf5c98d
commit
42698bb219
13 changed files with 333 additions and 160 deletions
|
|
@ -7,11 +7,13 @@ fn check_files() {
|
|||
for file in files {
|
||||
let input = std::fs::read_to_string(file.unwrap().path()).unwrap();
|
||||
|
||||
let Ok(parsed) = nomo::lexer::parse(input.into()) else {
|
||||
let input = nomo::input::NomoInput::from(input);
|
||||
|
||||
let Ok(parsed) = nomo::lexer::parse(input.clone()) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
let Ok(ast) = nomo::parser::parse(parsed.tokens()) else {
|
||||
let Ok(ast) = nomo::parser::parse(input, parsed.tokens()) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue