From fa7e2e6986d7d374f9e5bee1908cbee5e87feac8 Mon Sep 17 00:00:00 2001 From: azur Date: Wed, 1 Mar 2023 02:26:23 +0700 Subject: [PATCH] rename mod --- src/main.rs | 4 ++-- src/{parse => read}/mod.rs | 0 src/{parse => read}/parse.rs | 0 src/{parse => read}/past.rs | 0 src/trans/low.rs | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename src/{parse => read}/mod.rs (100%) rename src/{parse => read}/parse.rs (100%) rename src/{parse => read}/past.rs (100%) diff --git a/src/main.rs b/src/main.rs index 9b8cf90..b498337 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ #![feature(trait_alias)] -pub mod parse; +pub mod read; pub mod trans; -use parse::parse::{lex, parse}; +use read::parse::{lex, parse}; use trans::low::{translate_expr, translate_js}; fn main() { diff --git a/src/parse/mod.rs b/src/read/mod.rs similarity index 100% rename from src/parse/mod.rs rename to src/read/mod.rs diff --git a/src/parse/parse.rs b/src/read/parse.rs similarity index 100% rename from src/parse/parse.rs rename to src/read/parse.rs diff --git a/src/parse/past.rs b/src/read/past.rs similarity index 100% rename from src/parse/past.rs rename to src/read/past.rs diff --git a/src/trans/low.rs b/src/trans/low.rs index 11283ca..427e728 100644 --- a/src/trans/low.rs +++ b/src/trans/low.rs @@ -1,4 +1,4 @@ -use crate::parse::past::{PExpr, PLiteral, PBinaryOp, PUnaryOp}; +use crate::read::past::{PExpr, PLiteral, PBinaryOp, PUnaryOp}; use super::{ ast::{Expr, Literal, BinaryOp, UnaryOp}, js::{JSExpr, JSLiteral},