{-# LANGUAGE ApplicativeDo #-} {-# LANGUAGE TypeApplications #-} module CLI (main) where import System.Environment import TreeSitter.Unmarshal import TreeSitter.Python.AST import TreeSitter.Python import Source.Range import Source.Span import Data.ByteString (readFile, ByteString) import System.IO (FilePath) main :: IO () main = do args <- getArgs bytestring <- Data.ByteString.readFile (args !! 0) print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring