Skip to content

Generating variable names within rewrites #101

Answered by Bastacyclop
Kixiron asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Kixiron, consider using something like DeBruijn indices instead of variable names if it makes sense for your language.

Otherwise there is an example of generating fresh names deterministically in the lambda calculus test: https://github.com/egraphs-good/egg/blob/main/tests/lambda.rs#L153

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mwillsey
Comment options

@Kixiron
Comment options

@mwillsey
Comment options

@Kixiron
Comment options

@Kixiron
Comment options

Answer selected by Kixiron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants