mirror of
https://github.com/github/semantic.git
synced 2024-11-23 16:37:50 +03:00
s/ast/parse
This commit is contained in:
parent
85c79821d9
commit
c4b68d3a4c
@ -24,7 +24,7 @@ data SemanticAST = SemanticAST
|
||||
, _source :: Either [FilePath] String
|
||||
}
|
||||
|
||||
-- Usage: semantic-ast --format ARG [--no-color] (--sourceString STRING | FILEPATHS…)
|
||||
-- Usage: semantic-parse --format ARG [--no-color] (--sourceString STRING | FILEPATHS…)
|
||||
parseAST :: Parser SemanticAST
|
||||
parseAST = SemanticAST
|
||||
<$> option auto
|
||||
@ -66,7 +66,7 @@ opts :: ParserInfo SemanticAST
|
||||
opts = info (parseAST <**> helper)
|
||||
( fullDesc
|
||||
<> progDesc "Parse source code and produce an AST"
|
||||
<> header "semantic-ast is a package used to parse source code" )
|
||||
<> header "semantic-parse is a package used to parse source code" )
|
||||
|
||||
-- TODO: Define formats for json, sexpression, etc.
|
||||
data Format = Show
|
||||
|
Loading…
Reference in New Issue
Block a user