mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-19 00:36:02 -06:00
add derive Show for ParseResult
This commit is contained in:
@@ -845,6 +845,7 @@ data ParseOutput a
|
|||||||
| ParseOk a -- ^ If the parsing and the type checking are successful
|
| ParseOk a -- ^ If the parsing and the type checking are successful
|
||||||
-- we get the abstract syntax trees as either a list or a chart.
|
-- we get the abstract syntax trees as either a list or a chart.
|
||||||
| ParseIncomplete -- ^ The sentence is not complete.
|
| ParseIncomplete -- ^ The sentence is not complete.
|
||||||
|
deriving Show
|
||||||
|
|
||||||
parse :: Concr -> Type -> String -> ParseOutput [(Expr,Float)]
|
parse :: Concr -> Type -> String -> ParseOutput [(Expr,Float)]
|
||||||
parse c ty sent =
|
parse c ty sent =
|
||||||
|
|||||||
Reference in New Issue
Block a user