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

Trailing whitespace not being consumed, resulting in not seeing unexpected newline #26

Open
istathar opened this issue Jan 22, 2020 · 0 comments
Labels
bug help-wanted Could use help from someone more knowledgeable than us

Comments

@istathar
Copy link
Member

The input technique:

% technique v0
! AllRightsReserved; (c) 1979 Douglas Adams

    question q,p : Question,People -> 
    {
        ...

results in this error

tests/Broken.t:4:39-40

    question q,p : Question,People -> 
                                      ^^

unexpected "
 "
expecting a valid type.

It really ought to say

unexpected newline

but it's not because it's getting ' ' '\n' rather than the single character which would trigger the special case in Technique.Failure. Not sure what to do about it; this is going to be intimately tied to the space consuming code in Technique.Parser. That space character should have been discarded, leaving unexpected newline?

@istathar istathar added bug help-wanted Could use help from someone more knowledgeable than us labels Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help-wanted Could use help from someone more knowledgeable than us
Development

No branches or pull requests

1 participant