Rename new.rs -> peg_parser.rs

This commit is contained in:
Greg Shuflin 2021-11-14 04:25:24 -08:00
parent 96393604c3
commit d38bb2278c
3 changed files with 3 additions and 3 deletions

View File

@ -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() }
})

View File

@ -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> {