mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +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
|
, _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 :: Parser SemanticAST
|
||||||
parseAST = SemanticAST
|
parseAST = SemanticAST
|
||||||
<$> option auto
|
<$> option auto
|
||||||
@ -66,7 +66,7 @@ opts :: ParserInfo SemanticAST
|
|||||||
opts = info (parseAST <**> helper)
|
opts = info (parseAST <**> helper)
|
||||||
( fullDesc
|
( fullDesc
|
||||||
<> progDesc "Parse source code and produce an AST"
|
<> 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.
|
-- TODO: Define formats for json, sexpression, etc.
|
||||||
data Format = Show
|
data Format = Show
|
||||||
|
Loading…
Reference in New Issue
Block a user