Skip to content

Port more macros fasee #1511

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

Conversation

andrew-johnson-4
Copy link
Collaborator

Describe your changes

  • ported assert to macros 2.0
  • added macro::location helper to find source location of a term
  • macro::location works basically like a function returning the source location of any term, including terms that have been rewritten into the subtree

Issue ticket number and link

#1468

Checklist before requesting a review

  • [ x ] I have performed a self-review of my code
  • [ x ] If it is a new feature, I have added thorough tests.
  • [ x ] I agree to release these changes under the terms of the permissive MIT license (1).
  1. https://github.com/andrew-johnson-4/lambda-mountain/blob/main/LICENSE

@andrew-johnson-4
Copy link
Collaborator Author

old macros feel so rotten by comparison.

@andrew-johnson-4
Copy link
Collaborator Author

no. the new macro system is not slower. I just had something running in the background.

@andrew-johnson-4 andrew-johnson-4 merged commit 5c9e68c into Lambda-Mountain-Compiler-Backend:main May 16, 2025
1 check passed
@andrew-johnson-4 andrew-johnson-4 deleted the port-more-macros-fasee branch May 16, 2025 03:03
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.

1 participant