-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support full ParseResult type #26
Comments
@MichaelMay81 sounds like a good idea! Any chance you could send a PR for this feature? It would be good to keep |
We are using JsonProvider for now, but we might switch to SimpleJson and than I would have time to work on this... |
Just curious about the use case if you don't mind sharing, why JsonProvider? |
I have to parse time series data. The first problem was the lag of exponential float format support (thx for accepting my patch) and the second the lag of error feedback. I still don't get error feedback with JsonProvider, but I get undefined parts instead of the whole parsing failing in case of errors in the json file. |
The thing is with |
Fable.Parsimmon supports only status and value in its ParseResult type.
parsimmon.parse returns:
{ status: true,
index: index,
value: value,
furthest: -1,
expected: []
};
I propose to use Result instead of Option for Parsimmon.parse and return "Success result.value" or "Error result"
The text was updated successfully, but these errors were encountered: