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

add a few typechecker hooks #81

Open
fredokun opened this issue Feb 28, 2019 · 0 comments
Open

add a few typechecker hooks #81

fredokun opened this issue Feb 28, 2019 · 0 comments

Comments

@fredokun
Copy link
Collaborator

It would be useful to have some hooks so that the typechecker can be inspected in examples.
As a first guess, the typechecker hooks would be functions of the following form:

__typecheck_HOOK(args...)

As a first example, a simple printer for inferred types would be very useful:

__typlecheck_infer(<expr>)

would print in the output the inferred type of <expr>

Also a simple log printer:

__typecheck_log(args...)

simply prints the args (str(arg1) + str(arg2) + ...)

@fredokun fredokun added enhancement todo (pstl) special label for student projects labels Feb 28, 2019
@fredokun fredokun removed the todo (pstl) special label for student projects label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant