diff --git a/semantic-ast/src/CLI.hs b/semantic-ast/src/CLI.hs index 3a76c3994..0f41cb594 100644 --- a/semantic-ast/src/CLI.hs +++ b/semantic-ast/src/CLI.hs @@ -40,3 +40,8 @@ generateAST :: SemanticAST -> IO () generateAST (SemanticAST file _) = do bytestring <- Data.ByteString.readFile file print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring +-- cat something in +stdInput :: Parser Input +stdInput = flag' StdInput + ( long "stdin" + <> help "Read from stdin" )