Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Create types corresponding to evaluation results #3

Open
deepakjois opened this issue Jan 30, 2012 · 1 comment
Open

Create types corresponding to evaluation results #3

deepakjois opened this issue Jan 30, 2012 · 1 comment

Comments

@deepakjois
Copy link
Owner

Currently there are only types corresponding to Logo tokens. We also need a result type that will represent the outcome of evaluating an expression or result.

@deepakjois
Copy link
Owner Author

Turns out it was not needed. I decided to overload the LogoToken type to represent the results of an evaluation. Strictly speaking, a valid evaluation can only use a subset of constructors defined by LogoToken. Once I learn to use GADTs better, I might be able to have a more robust type definitions. Till then this should suffice.

Check out changes made in 56b3741

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant