Skip to content

List of expressions #90

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

Open
ptal opened this issue Jul 31, 2016 · 0 comments
Open

List of expressions #90

ptal opened this issue Jul 31, 2016 · 0 comments

Comments

@ptal
Copy link
Owner

ptal commented Jul 31, 2016

A list of expressions is defined by e % sep which is equivalent to e (sep e)* in term of parsing but not equivalent in term of types. Indeed the first expression will have the type Vec<E> while the second (E, Vec<E>) or (E, Vec<(E, Sep)>) if the separator has a type different from () or (^).

  • e % sep has the type Vec<E> and sep must have the type () (or (^)) or a typing error should be exposed.
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