rename modules lexer->lex, parser->parse
This commit is contained in:
parent
e08452f0db
commit
2b73907119
|
@ -10,7 +10,7 @@ parsec
|
||||||
|
|
||||||
> -- | This is the module contains a Lexer for SQL.
|
> -- | This is the module contains a Lexer for SQL.
|
||||||
> {-# LANGUAGE TupleSections #-}
|
> {-# LANGUAGE TupleSections #-}
|
||||||
> module Language.SQL.SimpleSQL.Lexer
|
> module Language.SQL.SimpleSQL.Lex
|
||||||
> (Token(..)
|
> (Token(..)
|
||||||
> ,lexSQL
|
> ,lexSQL
|
||||||
> ,prettyToken
|
> ,prettyToken
|
|
@ -176,7 +176,7 @@ fixing them in the syntax but leaving them till the semantic checking
|
||||||
|
|
||||||
> {-# LANGUAGE TupleSections #-}
|
> {-# LANGUAGE TupleSections #-}
|
||||||
> -- | This is the module with the parser functions.
|
> -- | This is the module with the parser functions.
|
||||||
> module Language.SQL.SimpleSQL.Parser
|
> module Language.SQL.SimpleSQL.Parse
|
||||||
> (parseQueryExpr
|
> (parseQueryExpr
|
||||||
> ,parseValueExpr
|
> ,parseValueExpr
|
||||||
> ,parseStatement
|
> ,parseStatement
|
||||||
|
@ -202,7 +202,7 @@ fixing them in the syntax but leaving them till the semantic checking
|
||||||
> import Language.SQL.SimpleSQL.Syntax
|
> import Language.SQL.SimpleSQL.Syntax
|
||||||
> import Language.SQL.SimpleSQL.Combinators
|
> import Language.SQL.SimpleSQL.Combinators
|
||||||
> import Language.SQL.SimpleSQL.Errors
|
> import Language.SQL.SimpleSQL.Errors
|
||||||
> import qualified Language.SQL.SimpleSQL.Lexer as L
|
> import qualified Language.SQL.SimpleSQL.Lex as L
|
||||||
> import Data.Maybe
|
> import Data.Maybe
|
||||||
> import Text.Parsec.String (GenParser)
|
> import Text.Parsec.String (GenParser)
|
||||||
|
|
|
@ -32,8 +32,8 @@ Flag parserexe
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules: Language.SQL.SimpleSQL.Pretty,
|
exposed-modules: Language.SQL.SimpleSQL.Pretty,
|
||||||
Language.SQL.SimpleSQL.Parser,
|
Language.SQL.SimpleSQL.Parse,
|
||||||
Language.SQL.SimpleSQL.Lexer,
|
Language.SQL.SimpleSQL.Lex,
|
||||||
Language.SQL.SimpleSQL.Syntax
|
Language.SQL.SimpleSQL.Syntax
|
||||||
Other-Modules: Language.SQL.SimpleSQL.Errors,
|
Other-Modules: Language.SQL.SimpleSQL.Errors,
|
||||||
Language.SQL.SimpleSQL.Combinators
|
Language.SQL.SimpleSQL.Combinators
|
||||||
|
@ -59,8 +59,8 @@ Test-Suite Tests
|
||||||
tasty-hunit >= 0.9 && < 0.10
|
tasty-hunit >= 0.9 && < 0.10
|
||||||
|
|
||||||
Other-Modules: Language.SQL.SimpleSQL.Pretty,
|
Other-Modules: Language.SQL.SimpleSQL.Pretty,
|
||||||
Language.SQL.SimpleSQL.Parser,
|
Language.SQL.SimpleSQL.Parse,
|
||||||
Language.SQL.SimpleSQL.Lexer,
|
Language.SQL.SimpleSQL.Lex,
|
||||||
Language.SQL.SimpleSQL.Syntax,
|
Language.SQL.SimpleSQL.Syntax,
|
||||||
Language.SQL.SimpleSQL.Errors,
|
Language.SQL.SimpleSQL.Errors,
|
||||||
Language.SQL.SimpleSQL.Combinators
|
Language.SQL.SimpleSQL.Combinators
|
||||||
|
|
|
@ -5,7 +5,7 @@ Test for the lexer
|
||||||
> module Language.SQL.SimpleSQL.LexerTests (lexerTests) where
|
> module Language.SQL.SimpleSQL.LexerTests (lexerTests) where
|
||||||
|
|
||||||
> import Language.SQL.SimpleSQL.TestTypes
|
> import Language.SQL.SimpleSQL.TestTypes
|
||||||
> import Language.SQL.SimpleSQL.Lexer (Token(..))
|
> import Language.SQL.SimpleSQL.Lex (Token(..))
|
||||||
> --import Debug.Trace
|
> --import Debug.Trace
|
||||||
|
|
||||||
> lexerTable :: [(String,[Token])]
|
> lexerTable :: [(String,[Token])]
|
||||||
|
|
|
@ -7,7 +7,7 @@ Tests.lhs module for the 'interpreter'.
|
||||||
> ,Dialect(..)) where
|
> ,Dialect(..)) where
|
||||||
|
|
||||||
> import Language.SQL.SimpleSQL.Syntax
|
> import Language.SQL.SimpleSQL.Syntax
|
||||||
> import Language.SQL.SimpleSQL.Lexer (Token)
|
> import Language.SQL.SimpleSQL.Lex (Token)
|
||||||
|
|
||||||
TODO: maybe make the dialect args into [dialect], then each test
|
TODO: maybe make the dialect args into [dialect], then each test
|
||||||
checks all the dialects mentioned work, and all the dialects not
|
checks all the dialects mentioned work, and all the dialects not
|
||||||
|
|
|
@ -14,8 +14,8 @@ test data to the Test.Framework tests.
|
||||||
|
|
||||||
> --import Language.SQL.SimpleSQL.Syntax
|
> --import Language.SQL.SimpleSQL.Syntax
|
||||||
> import Language.SQL.SimpleSQL.Pretty
|
> import Language.SQL.SimpleSQL.Pretty
|
||||||
> import Language.SQL.SimpleSQL.Parser
|
> import Language.SQL.SimpleSQL.Parse
|
||||||
> import Language.SQL.SimpleSQL.Lexer
|
> import Language.SQL.SimpleSQL.Lex
|
||||||
|
|
||||||
> import Language.SQL.SimpleSQL.TestTypes
|
> import Language.SQL.SimpleSQL.TestTypes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue