mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
move parseByteString into new generateAST function
This commit is contained in:
parent
ebdf8032e4
commit
b4a0968406
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user