1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

move parseByteString into new generateAST function

This commit is contained in:
Ayman Nadeem 2019-10-02 15:25:03 -04:00
parent ebdf8032e4
commit b4a0968406

View File

@ -32,4 +32,7 @@ main :: IO ()
main = do
args <- head <$> getArgs
bytestring <- Data.ByteString.readFile args
generateAST :: SemanticAST -> IO ()
generateAST (SemanticAST file _) = do
bytestring <- Data.ByteString.readFile file
print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring