Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
curry
curry-tools
Commits
df266301
Commit
df266301
authored
Apr 26, 2013
by
Michael Hanus
Browse files
FlatCurry constructor Typed added at various places
parent
334cd423
Changes
5
Hide whitespace changes
Inline
Side-by-side
CASS/Configuration.curry
View file @
df266301
...
...
@@ -27,7 +27,7 @@ import Char(isSpace)
systemBanner =
let bannerText = "CASS: Curry Analysis Server System ("++
"version of
19
/04/2013 for "++curryCompiler++")"
"version of
26
/04/2013 for "++curryCompiler++")"
bannerLine = take (length bannerText) (repeat '=')
in bannerLine ++ "\n" ++ bannerText ++ "\n" ++ bannerLine
...
...
CASS/FlatCurryDependency.curry
View file @
df266301
...
...
@@ -2,7 +2,7 @@
--- A few base functions for analysing type dependencies in FlatCurry programs.
---
--- @author Heiko Hoffmann, Michael Hanus
--- @version
March
2013
--- @version
April
2013
-----------------------------------------------------------------------------
module FlatCurryDependency(dependsDirectlyOnTypes,callsDirectly) where
...
...
@@ -51,6 +51,7 @@ funcSetOfExpr (Or e1 e2) = unionRBT (funcSetOfExpr e1) (funcSetOfExpr e2)
funcSetOfExpr (Case _ e bs) = unionRBT (funcSetOfExpr e)
(unionMap funcSetOfBranch bs)
where funcSetOfBranch (Branch _ be) = funcSetOfExpr be
funcSetOfExpr (Typed e _) = funcSetOfExpr e
isConstructorComb ct = case ct of
ConsCall -> True
...
...
browser/ShowFlatCurry.curry
View file @
df266301
...
...
@@ -226,6 +226,8 @@ substituteAllCase vs es b (Branch (Pattern l pvs) e) =
Branch (Pattern l (map (+b) pvs)) (substituteAll vs es b e)
substituteAllCase vs es b (Branch (LPattern l) e) =
Branch (LPattern l) (substituteAll vs es b e)
substituteAll vs es b (Typed e t) =
Typed (substituteAll vs es b e) t
-- Is the expression a guarded expressions?
...
...
genint/GenInt.curry
View file @
df266301
...
...
@@ -311,6 +311,8 @@ substituteAllCase vs es b (Branch (Pattern l pvs) e) =
Branch (Pattern l (map (+b) pvs)) (substituteAll vs es b e)
substituteAllCase vs es b (Branch (LPattern l) e) =
Branch (LPattern l) (substituteAll vs es b e)
substituteAll vs es b (Typed e t) =
Typed (substituteAll vs es b e) t
-- Is the expression a guarded expressions?
...
...
importcalls/ImportCalls.curry
View file @
df266301
-----------------------------------------------------------------------------
-- Show all calls to imported functions in a module
--
-- Michael Hanus, November 2003
--- Show all calls to imported functions in a module
---
--- @author Michael Hanus
--- @version April 2013
-----------------------------------------------------------------------------
module ImportCalls(main,showImportCalls) where
...
...
@@ -78,6 +79,7 @@ globalFunsInExpr mod exp = funsInExpr exp
funsInExpr (Case _ e bs) = union (funsInExpr e)
(nub (concatMap funsInBranch bs))
where funsInBranch (Branch _ be) = funsInExpr be
funsInExpr (Typed e _) = funsInExpr e
----------------- Auxiliaries:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment