Changed module names
This commit is contained in:
parent
7218e4b4fb
commit
cde29b7fcc
|
@ -19,12 +19,11 @@ executable cherry
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
other-modules: ExprType,
|
other-modules: ExprType,
|
||||||
ExprParser,
|
Parser,
|
||||||
TokenType,
|
TokenType,
|
||||||
TokenParser,
|
Lexer,
|
||||||
Evaluator,
|
Evaluator,
|
||||||
ParserUtils,
|
ParserUtils
|
||||||
TokenParser
|
|
||||||
|
|
||||||
build-depends: base >= 4.7 && < 5,
|
build-depends: base >= 4.7 && < 5,
|
||||||
containers,
|
containers,
|
||||||
|
|
|
@ -4,11 +4,9 @@ import qualified Data.Map as M
|
||||||
import ExprType
|
import ExprType
|
||||||
|
|
||||||
type Env = M.Map String Expr
|
type Env = M.Map String Expr
|
||||||
type Proc = String
|
|
||||||
|
|
||||||
-- TODO: create a separated file for builtinProcs
|
-- 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 a BuiltinProc or something like that in data Expr, and make + a builtin proc
|
||||||
-- TODO: create enviroments
|
|
||||||
|
|
||||||
base :: Env
|
base :: Env
|
||||||
base = M.fromList [
|
base = M.fromList [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module TokenParser where
|
module Lexer where
|
||||||
|
|
||||||
import Text.ParserCombinators.Parsec
|
import Text.ParserCombinators.Parsec
|
||||||
import ParserUtils
|
import ParserUtils
|
|
@ -1,7 +1,7 @@
|
||||||
module Main where
|
module Main where
|
||||||
|
|
||||||
import Evaluator
|
import Evaluator
|
||||||
import ExprParser
|
import Parser
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import System.Console.Haskeline
|
import System.Console.Haskeline
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
module ExprParser where
|
module Parser where
|
||||||
|
|
||||||
import Text.Parsec
|
import Text.Parsec
|
||||||
import Text.Parsec.String
|
import Text.Parsec.String
|
||||||
import TokenParser
|
import Lexer
|
||||||
import TokenType
|
import TokenType
|
||||||
import ExprType
|
import ExprType
|
||||||
|
|
Loading…
Reference in New Issue