printing for most of FromParserError
This commit is contained in:
parent
2b2f79fca9
commit
ad942b2fd8
4 changed files with 62 additions and 11 deletions
|
@ -6,7 +6,9 @@ import public Quox.Parser.Syntax
|
|||
import Data.Fin
|
||||
import Data.Vect
|
||||
import public Text.Parser
|
||||
import Derive.Prelude
|
||||
|
||||
%language ElabReflection
|
||||
%default total
|
||||
|
||||
|
||||
|
@ -325,6 +327,7 @@ data Error =
|
|||
LexError Lexer.Error
|
||||
| ParseError (List1 (ParsingError Token))
|
||||
%hide Lexer.Error
|
||||
%runElab derive "Error" [Show]
|
||||
|
||||
export
|
||||
lexParseWith : {c : Bool} -> Grammar c a -> String -> Either Error a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue