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

crucible-llvm-syntax: Concrete syntax for Crucible-LLVM #1113

Merged

Conversation

langston-barrett
Copy link
Contributor

This is an MVP implementation of syntax for the LLVM language extension. This package would need additional operations to address the use-cases listed in #920, but provides a reasonable base to start building off. It has the additional benefit of giving an in-repo example of usage of the API introduced in #923.

Will be helpful for crucible-llvm-syntax.
This commit introduces an instance of crucible-syntax's `ParserHooks` for the
LLVM language extension. It's far from optimal or complete, but later commits
can build on this foundation.
Also, take an LLVM memory global variable as an argument. Not yet necessary,
but would be if we were to ever support operations like loading and storing.
Copy link
Contributor

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks exciting!

.github/workflows/crux-llvm-build.yml Show resolved Hide resolved
crucible-llvm-syntax/README.md Outdated Show resolved Hide resolved
crucible-llvm-syntax/test-data/ptr.cbl Show resolved Hide resolved
@langston-barrett
Copy link
Contributor Author

langston-barrett commented Nov 1, 2023

If this is merged, I will make three follow-up issues:

  • Concrete syntax for the remaining MemTypes
  • Concrete syntax for Alignment (other than none)
  • Concrete syntax for the additional LLVM syntax formers

@langston-barrett langston-barrett marked this pull request as ready for review November 1, 2023 16:02
crucible-llvm-syntax/README.md Outdated Show resolved Hide resolved
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

3 participants