1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 21:16:12 +03:00

Add a type signature here

This commit is contained in:
Timothy Clem 2018-02-16 09:22:19 -08:00
parent 9d52485d9e
commit 3c5714af7f

View File

@ -25,6 +25,7 @@ import Semantic.Task
import Data.AST
import Data.Union
import Data.Abstract.Value
import Data.Abstract.Store
import Data.Abstract.Address
import qualified Language.Python.Assignment as Python
@ -41,6 +42,14 @@ parsePythonFiles paths entryPath = do
entryTerm <- runTask (parse pythonParser entryBlob)
pure (zip blobs terms, (entryBlob, entryTerm))
evaluatePythonFiles :: [FilePath]
-> IO
(Either
Prelude.String
(Union
(ValueConstructors Precise)
(Term (Union Python.Syntax) (Record Location))),
Store Precise PythonValue)
evaluatePythonFiles paths = do
blobs@(b:bs) <- traverse file paths
(t:ts) <- runTask $ traverse (parse pythonParser) blobs