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

Print all where statements #39

Open
tcr opened this issue May 23, 2017 · 1 comment
Open

Print all where statements #39

tcr opened this issue May 23, 2017 · 1 comment

Comments

@tcr
Copy link
Owner

tcr commented May 23, 2017

There are a few control groups (of do, let, and case) that don't handle where right.

  1. They parse their body as a list of statements and then where, so where first needs to be stripped from the body.
  2. The where clause should be asserted to be the last item in the body.
  3. Then the where clause should have its own parameter in the AST node. Then it should be checked that all of these are printed in main.rs
@tcr
Copy link
Owner Author

tcr commented May 23, 2017

Another example:

toRustType (IsPtr mut to) = let Rust.TypeName to' = toRustType to in Rust.TypeName (rustMut mut ++ to')
    where
    rustMut Rust.Mutable = "*mut "
    rustMut Rust.Immutable = "*const "

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