From d38bb2278cbbdda4cc3da7f5136fdf54d356f633 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sun, 14 Nov 2021 04:25:24 -0800 Subject: [PATCH] Rename new.rs -> peg_parser.rs --- schala-lang/src/parsing/mod.rs | 4 ++-- schala-lang/src/parsing/{new.rs => peg_parser.rs} | 0 schala-lang/src/parsing/test.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename schala-lang/src/parsing/{new.rs => peg_parser.rs} (100%) diff --git a/schala-lang/src/parsing/mod.rs b/schala-lang/src/parsing/mod.rs index b380d78..8be965e 100644 --- a/schala-lang/src/parsing/mod.rs +++ b/schala-lang/src/parsing/mod.rs @@ -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 { use peg::str::LineCol; - new::schala_parser::program(input, self).map_err(|err: peg::error::ParseError| { + peg_parser::schala_parser::program(input, self).map_err(|err: peg::error::ParseError| { let msg = err.to_string(); ParseError { msg, location: err.location.offset.into() } }) diff --git a/schala-lang/src/parsing/new.rs b/schala-lang/src/parsing/peg_parser.rs similarity index 100% rename from schala-lang/src/parsing/new.rs rename to schala-lang/src/parsing/peg_parser.rs diff --git a/schala-lang/src/parsing/test.rs b/schala-lang/src/parsing/test.rs index 41de80a..4fb6775 100644 --- a/schala-lang/src/parsing/test.rs +++ b/schala-lang/src/parsing/test.rs @@ -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 {