You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading Robert Harper's book (http://www.cs.cmu.edu/~rwh/pfpl/index.html) and was wondering if it was possible to generate Abstract Binding Trees (ABTs) instead of ASTs with Lark. How would one do this?
On a very vague way I thought one could generate the AST then replace variable names with De Brujin indices and somehow use that information to point back to the right binder. Would that work?
I'm a none PL expert so I am wondering how one would generate ABTs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was reading Robert Harper's book (http://www.cs.cmu.edu/~rwh/pfpl/index.html) and was wondering if it was possible to generate Abstract Binding Trees (ABTs) instead of ASTs with Lark. How would one do this?
On a very vague way I thought one could generate the AST then replace variable names with De Brujin indices and somehow use that information to point back to the right binder. Would that work?
I'm a none PL expert so I am wondering how one would generate ABTs.
Beta Was this translation helpful? Give feedback.
All reactions