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

Fix parsing of stores and loads in tests #10

Merged
merged 2 commits into from
Jul 4, 2015

Conversation

michalt
Copy link
Contributor

@michalt michalt commented Jun 28, 2015

Apparently testing/Parse was not able to parse memory accesses. This PR should fix this.

Also, now failing tests will error instead of just printing error message (since that by default is hidden by test-framework).

Previously Test would only print any errors (e.g., parsing errors).
Now it'll simply crash, making the failure obvious.
Apparently the current parser would fail on any memory accesses, both
loads and stores. In case of the former it's enough to try parsing the
memory accesses before variables. For stores, we can use backtracking
so that we don't consume the initial "m" of memory assignemnt thinking
that it's a variable identifier.
@michalt
Copy link
Contributor Author

michalt commented Jun 30, 2015

Rebased against the master, so everything should merge ok now.

@mlite mlite merged commit 19526cc into haskell:master Jul 4, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants