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

Substance parser cannot parse In #44

Closed
kai-qu opened this issue Jan 13, 2018 · 2 comments
Closed

Substance parser cannot parse In #44

kai-qu opened this issue Jan 13, 2018 · 2 comments

Comments

@kai-qu
Copy link
Contributor

kai-qu commented Jan 13, 2018

The following program does not parse and I believe it should:

Set A
Point B
In B A

Running ./Main snap sub/venn_comp_pt.sub sty/venn_comp_simple.sty gives this error:

Main: sub/venn_comp_pt.sub:3:1:
unexpected 'I'
expecting alphanumeric character, end of input, letter, or newline

CallStack (from HasCallStack):
  error, called at ./Substance.hs:341:18 in main:Substance
@wodeni
Copy link
Member

wodeni commented Jan 13, 2018

Pushed a fix to the issue with In. Turned out to be more complicated then I thought. It was mostly related to the space consumer. I also upgraded Megaparsec to 6.3 for some new functionalities I used in this commit.
Note that I did not run all examples in our repo, so @hypotext let me know if any example failed in unobvious ways.

@wodeni
Copy link
Member

wodeni commented Jan 16, 2018

Since we still have a couple of branches working on the older version of Megaparsec, please compile Main with the following command, which hides the newer version:

ghc Main -ignore-package megaparsec-6.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants