Skip to content
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

anyChar fails on '\uFFFF' #59

Open
brianberns opened this issue Jul 22, 2020 · 0 comments
Open

anyChar fails on '\uFFFF' #59

brianberns opened this issue Jul 22, 2020 · 0 comments

Comments

@brianberns
Copy link

brianberns commented Jul 22, 2020

'\uFFFF' is FParsec's special end-of-stream character (EOS). Unfortunately, there are some files in the wild that actually contain this character, and anyChar will fail when it encounters it:

let str = string EOS
let result = runParserOnString anyChar () "" str
printfn "%A" result

Output:

Failure:
Error in Ln: 1 Col: 2
�
 ^
Note: The error occurred at the end of the input stream.
Expecting: any char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant