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

Create a Representer #43

Open
1ethanhansen opened this issue Jan 19, 2023 · 2 comments
Open

Create a Representer #43

1ethanhansen opened this issue Jan 19, 2023 · 2 comments

Comments

@1ethanhansen
Copy link
Contributor

From the docs:

A Representer is a bit of code that has the single responsibility of taking a solution and returning a normalized representation of it.

@keiravillekode
Copy link
Contributor

As a starting point, we can generate JSON using

v ast -p example.v

"pos" and "mut_pos" attributes would need to be removed. "scope" and variable name attributes would need to be normalized.

@1ethanhansen
Copy link
Contributor Author

@keiravillekode it would be great if you want to work on this! I don't think i'll have the bandwidth for it any time in the next month or so, but after that I'd be happy to team up on it

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

2 participants