Changed module names

This commit is contained in:
Ivy 2021-01-30 00:11:03 +01:00
parent 7218e4b4fb
commit cde29b7fcc
5 changed files with 7 additions and 10 deletions

View File

@ -19,12 +19,11 @@ executable cherry
default-language: Haskell2010
other-modules: ExprType,
ExprParser,
Parser,
TokenType,
TokenParser,
Lexer,
Evaluator,
ParserUtils,
TokenParser
ParserUtils
build-depends: base >= 4.7 && < 5,
containers,

View File

@ -4,11 +4,9 @@ import qualified Data.Map as M
import ExprType
type Env = M.Map String Expr
type Proc = String
-- TODO: create a separated file for builtinProcs
-- TODO: create a BuiltinProc or something like that in data Expr, and make + a builtin proc
-- TODO: create enviroments
base :: Env
base = M.fromList [

View File

@ -1,4 +1,4 @@
module TokenParser where
module Lexer where
import Text.ParserCombinators.Parsec
import ParserUtils

View File

@ -1,7 +1,7 @@
module Main where
import Evaluator
import ExprParser
import Parser
import Control.Monad
import Data.Maybe
import System.Console.Haskeline

View File

@ -1,8 +1,8 @@
module ExprParser where
module Parser where
import Text.Parsec
import Text.Parsec.String
import TokenParser
import Lexer
import TokenType
import ExprType