Skip to content

Commit ea84a06

Browse files
authored
Merge pull request #84 from henrylaxen/master
Removed testing-feat dependency from the main library, and the tabs from the lexer.
2 parents f90f2d9 + 6838d55 commit ea84a06

2 files changed

Lines changed: 28 additions & 19 deletions

File tree

language-ecmascript.cabal

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: language-ecmascript
22
Version: 0.18
3-
Cabal-Version: >= 1.10
3+
Cabal-Version: >= 1.10.0.1
44
Copyright: (c) 2007-2012 Brown University, (c) 2008-2010 Claudiu Saftoiu,
55
(c) 2012-2015 Stevens Institute of Technology, (c) 2016 Eyal Lotem, (c) 2016-2017 Andrey Chudnov
66
License: BSD3
@@ -45,7 +45,6 @@ Library
4545
QuickCheck >= 2.5 && < 3,
4646
template-haskell >= 2.7 && < 3,
4747
Diff == 0.3.*,
48-
testing-feat >= 0.4.0.2 && < 1.1,
4948
charset >= 0.3
5049
ghc-options:
5150
-fwarn-incomplete-patterns
@@ -56,7 +55,6 @@ Library
5655
Language.ECMAScript3.PrettyPrint
5756
Language.ECMAScript3.Syntax
5857
Language.ECMAScript3.Syntax.Annotations
59-
Language.ECMAScript3.Syntax.Arbitrary
6058
Language.ECMAScript3.Syntax.CodeGen
6159
Language.ECMAScript3.Syntax.QuasiQuote
6260
Language.ECMAScript3.Analysis.Environment
@@ -70,10 +68,19 @@ Library
7068
Default-Language: Haskell2010
7169

7270
Test-Suite test
73-
Hs-Source-Dirs: test
71+
Hs-Source-Dirs: src test
7472
Type: exitcode-stdio-1.0
7573
Main-Is: TestMain.hs
7674
Other-Modules:
75+
Language.ECMAScript3.Lexer
76+
Language.ECMAScript3.Parser
77+
Language.ECMAScript3.Parser.State
78+
Language.ECMAScript3.Parser.Type
79+
Language.ECMAScript3.PrettyPrint
80+
Language.ECMAScript3.SourceDiff
81+
Language.ECMAScript3.Syntax
82+
Language.ECMAScript3.Syntax.Annotations
83+
Language.ECMAScript3.Syntax.Arbitrary
7784
Test.Diff
7885
Test.Unit
7986
Test.Pretty
@@ -83,12 +90,14 @@ Test-Suite test
8390
mtl >= 1 && < 3,
8491
parsec >= 3 && < 3.2.0,
8592
ansi-wl-pprint >= 0.6 && < 1,
93+
charset >= 0.3,
8694
containers == 0.*,
8795
directory >= 1.2 && < 1.4,
8896
filepath >= 1.3 && < 1.5,
8997
HUnit >= 1.2 && < 1.7,
9098
QuickCheck >= 2.5 && < 3,
9199
data-default-class >= 0.0.1 && < 0.2,
100+
testing-feat >= 0.4.0.2 && < 1.1,
92101
test-framework >= 0.8 && < 0.9,
93102
test-framework-hunit >= 0.3.0 && < 0.4,
94103
test-framework-quickcheck2 >= 0.3.0.1 && < 0.4,

src/Language/ECMAScript3/Lexer.hs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,45 +80,45 @@ lex = T.makeTokenParser javascriptDef
8080

8181
-- everything but commaSep and semiSep
8282
identifier :: Stream s Identity Char => Parser s String
83-
identifier = T.identifier lex
83+
identifier = T.identifier lex
8484
reserved :: Stream s Identity Char => String -> Parser s ()
85-
reserved = T.reserved lex
85+
reserved = T.reserved lex
8686
operator :: Stream s Identity Char => Parser s String
87-
operator = T.operator lex
87+
operator = T.operator lex
8888
reservedOp :: Stream s Identity Char => String -> Parser s ()
89-
reservedOp = T.reservedOp lex
89+
reservedOp = T.reservedOp lex
9090
charLiteral :: Stream s Identity Char => Parser s Char
91-
charLiteral = T.charLiteral lex
91+
charLiteral = T.charLiteral lex
9292
stringLiteral :: Stream s Identity Char => Parser s String
9393
stringLiteral = T.stringLiteral lex
9494
-- natural :: Stream s Identity Char => Parser s Integer
95-
-- natural = T.natural lex
95+
-- natural = T.natural lex
9696
-- integer :: Stream s Identity Char => Parser s Integer
97-
-- integer = T.integer lex
97+
-- integer = T.integer lex
9898
-- float :: Stream s Identity Char => Parser s Double
9999
-- float = T.float lex
100100
-- naturalOrFloat :: Stream s Identity Char => Parser s (Either Integer Double)
101101
-- naturalOrFloat = T.naturalOrFloat lex
102102
-- decimal :: Stream s Identity Char => Parser s Integer
103-
-- decimal = T.decimal lex
103+
-- decimal = T.decimal lex
104104
-- hexadecimal :: Stream s Identity Char => Parser s Integer
105-
-- hexadecimal = T.hexadecimal lex
105+
-- hexadecimal = T.hexadecimal lex
106106
-- octal :: Stream s Identity Char => Parser s Integer
107107
-- octal = T.octal lex
108108
symbol :: Stream s Identity Char => String -> Parser s String
109109
symbol = T.symbol lex
110110
whiteSpace :: Stream s Identity Char => Parser s ()
111-
whiteSpace = T.whiteSpace lex
111+
whiteSpace = T.whiteSpace lex
112112
parens :: Stream s Identity Char => Parser s a -> Parser s a
113-
parens = T.parens lex
113+
parens = T.parens lex
114114
braces :: Stream s Identity Char => Parser s a -> Parser s a
115-
braces = T.braces lex
115+
braces = T.braces lex
116116
squares :: Stream s Identity Char => Parser s a -> Parser s a
117-
squares = T.squares lex
117+
squares = T.squares lex
118118
semi :: Stream s Identity Char => Parser s String
119-
semi = T.semi lex
119+
semi = T.semi lex
120120
comma :: Stream s Identity Char => Parser s String
121-
comma = T.comma lex
121+
comma = T.comma lex
122122
colon :: Stream s Identity Char => Parser s String
123123
colon = T.colon lex
124124
dot :: Stream s Identity Char => Parser s String

0 commit comments

Comments
 (0)