Rename new.rs -> peg_parser.rs
This commit is contained in:
parent
96393604c3
commit
d38bb2278c
@ -1,6 +1,6 @@
|
||||
#![allow(clippy::upper_case_acronyms)]
|
||||
|
||||
mod new;
|
||||
mod peg_parser;
|
||||
mod test;
|
||||
|
||||
use std::fmt;
|
||||
@ -22,7 +22,7 @@ impl Parser {
|
||||
pub(crate) fn parse(&mut self, input: &str) -> Result<AST, ParseError> {
|
||||
use peg::str::LineCol;
|
||||
|
||||
new::schala_parser::program(input, self).map_err(|err: peg::error::ParseError<LineCol>| {
|
||||
peg_parser::schala_parser::program(input, self).map_err(|err: peg::error::ParseError<LineCol>| {
|
||||
let msg = err.to_string();
|
||||
ParseError { msg, location: err.location.offset.into() }
|
||||
})
|
||||
|
@ -6,7 +6,7 @@ use std::{fmt::Write, rc::Rc};
|
||||
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
use super::{new::schala_parser, Parser};
|
||||
use super::{peg_parser::schala_parser, Parser};
|
||||
use crate::{ast::*, parsing::Location};
|
||||
|
||||
fn rc(s: &str) -> Rc<String> {
|
||||
|
Loading…
Reference in New Issue
Block a user