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

Codewalking to infer types #37

Open
digikar99 opened this issue May 24, 2023 · 3 comments
Open

Codewalking to infer types #37

digikar99 opened this issue May 24, 2023 · 3 comments

Comments

@digikar99
Copy link

digikar99 commented May 24, 2023

Would this library be suitable for inferring variable types, for example, can I use it to determine the type of a in:

(let ((a 5)) a) ; I'd expect (EQL 5)
;;; OR
(let ((a 5)) ; I'd expect (OR (EQL 5) (EQL 6))
  (setq a 6)
  a)

If so, is there any example code about how I can achieve this?

@robert-strandh
Copy link
Collaborator

You would probably need something like Trucler for that.
It is a library for managing lexical compile-time environments.

@digikar99
Copy link
Author

I see, thank you!
But so, while trucler provides the environment protocol, a code-walker that uses it is still yet to be developed, is that the case?

@robert-strandh
Copy link
Collaborator

Right. I am unaware of any general-purpose code walker having been developed
using Trucler. I suspect it has to do with the incomplete support that Trucler
provides for the widely used Common Lisp implementations.

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

No branches or pull requests

2 participants