Rename Mima.Parser to Mima.Parse
This commit is contained in:
parent
4b4c0605b5
commit
c91d3f23e9
5 changed files with 9 additions and 9 deletions
|
|
@ -9,7 +9,7 @@ import System.FilePath
|
||||||
import Mima.Flag
|
import Mima.Flag
|
||||||
import Mima.IO
|
import Mima.IO
|
||||||
import Mima.Load
|
import Mima.Load
|
||||||
import Mima.Parser.FlagFile
|
import Mima.Parse.FlagFile
|
||||||
import Mima.State
|
import Mima.State
|
||||||
import Mima.Util
|
import Mima.Util
|
||||||
import Mima.Word
|
import Mima.Word
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import qualified Data.Text.IO as T
|
||||||
import System.IO.Error
|
import System.IO.Error
|
||||||
import Text.Megaparsec
|
import Text.Megaparsec
|
||||||
|
|
||||||
import Mima.Parser.Common
|
import Mima.Parse.Common
|
||||||
|
|
||||||
type Run a = ExceptT String IO a
|
type Run a = ExceptT String IO a
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
module Mima.Parser.Common
|
module Mima.Parse.Common
|
||||||
( Parser
|
( Parser
|
||||||
-- * Basic parsers
|
-- * Basic parsers
|
||||||
, whitespace
|
, whitespace
|
||||||
|
|
@ -17,10 +17,10 @@ module Mima.Parser.Common
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Data.Char
|
import Data.Char
|
||||||
|
import qualified Data.Set as Set
|
||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
import Data.Void
|
import Data.Void
|
||||||
import Text.Megaparsec
|
import Text.Megaparsec
|
||||||
import qualified Data.Set as Set
|
|
||||||
|
|
||||||
import Mima.Word
|
import Mima.Word
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
|
||||||
module Mima.Parser.FlagFile
|
module Mima.Parse.FlagFile
|
||||||
( parseFlagFile
|
( parseFlagFile
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
|
@ -11,8 +11,8 @@ import qualified Data.Set as Set
|
||||||
import Text.Megaparsec
|
import Text.Megaparsec
|
||||||
|
|
||||||
import Mima.Flag
|
import Mima.Flag
|
||||||
import Mima.Parser.Common
|
import Mima.Parse.Common
|
||||||
import Mima.Parser.Lexeme
|
import Mima.Parse.Lexeme
|
||||||
import Mima.Word
|
import Mima.Word
|
||||||
|
|
||||||
lAddress :: Parser MimaAddress
|
lAddress :: Parser MimaAddress
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
module Mima.Parser.Lexeme
|
module Mima.Parse.Lexeme
|
||||||
( space
|
( space
|
||||||
, lexeme
|
, lexeme
|
||||||
, symbol
|
, symbol
|
||||||
|
|
@ -12,7 +12,7 @@ import Text.Megaparsec
|
||||||
import qualified Text.Megaparsec.Char as C
|
import qualified Text.Megaparsec.Char as C
|
||||||
import qualified Text.Megaparsec.Char.Lexer as L
|
import qualified Text.Megaparsec.Char.Lexer as L
|
||||||
|
|
||||||
import Mima.Parser.Common
|
import Mima.Parse.Common
|
||||||
|
|
||||||
space :: Parser ()
|
space :: Parser ()
|
||||||
space = L.space (void whitespace) empty empty
|
space = L.space (void whitespace) empty empty
|
||||||
Loading…
Add table
Add a link
Reference in a new issue