Skip to content

Commit

Permalink
Exclusing prolog and python by now
Browse files Browse the repository at this point in the history
  • Loading branch information
flbulgarelli committed Jun 10, 2018
1 parent 460c785 commit 27bffd0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions mulang.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ library
Language.Mulang.Inspector.Generic.Smell
Language.Mulang.Parsers
Language.Mulang.Parsers.Haskell
Language.Mulang.Parsers.Prolog
Language.Mulang.Parsers.Java
Language.Mulang.Parsers.JavaScript
Language.Mulang.Parsers.Python
Language.Mulang.Analyzer
Language.Mulang.Analyzer.Analysis
Language.Mulang.Analyzer.Analysis.Json
Expand All @@ -78,11 +76,9 @@ library
haskell-src ,
language-java ,
language-javascript ,
language-python ,
aeson ,
inflections <= 0.2.0.1,
parsec ,
ParsecTools ,
split ,
hashable ,
process
Expand Down
6 changes: 2 additions & 4 deletions src/Language/Mulang/Analyzer/SampleParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import Language.Mulang
import Language.Mulang.Parsers (EitherParser, maybeToEither)
import Language.Mulang.Parsers.Haskell
import Language.Mulang.Parsers.JavaScript (parseJavaScript)
import Language.Mulang.Parsers.Prolog (parseProlog)
import Language.Mulang.Parsers.Java (parseJava)
import Language.Mulang.Parsers.Python (parsePython)
import Language.Mulang.Analyzer.Analysis (Sample(..), Language(..))

parseSample :: Sample -> Either String Expression
Expand All @@ -18,5 +16,5 @@ parserFor :: Language -> EitherParser
parserFor Haskell = parseHaskell
parserFor Java = parseJava
parserFor JavaScript = maybeToEither parseJavaScript
parserFor Prolog = parseProlog
parserFor Python = parsePython
parserFor Prolog = error "unsupported"
parserFor Python = error "unsupported"
4 changes: 0 additions & 4 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ setup-info:
ghcjs-0.2.1.9007019_ghc-8.0.1:
url: http://ghcjs.tolysz.org/ghc-8.0-2017-02-05-lts-7.19-9007019.tar.gz
sha1: d2cfc25f9cda32a25a87d9af68891b2186ee52f9
extra-deps:
- ParsecTools-0.0.2.0
- aeson-1.2.1.0
- language-javascript-0.6.0.10
compiler-check: match-exact
compiler: ghcjs-0.2.1.9007019_ghc-8.0.1
resolver: lts-7.19

0 comments on commit 27bffd0

Please sign in to comment.