Skip to content

Reason Syntax v4: Angle Brackets Type Parameters (PARSING)#2604

Merged
jordwalke merged 3 commits intomasterfrom
AngleBrackets
Jul 13, 2020
Merged

Reason Syntax v4: Angle Brackets Type Parameters (PARSING)#2604
jordwalke merged 3 commits intomasterfrom
AngleBrackets

Conversation

@jordwalke
Copy link
Copy Markdown
Member

@jordwalke jordwalke commented Jul 10, 2020

This is a non-breaking change to Reason parser to implement Reason Syntax v4 Angle Brackets type parameters.
This diff only implements the parsing, and they will be reprinted as parenthesis. In a follow up diff I can implement the printing.
With this change, all existing Reason code will continue to be parsed, it just adds a new way to express type parameters.

type t<'a> = option<list<'a>>;

@jordwalke jordwalke merged commit 04d7b53 into master Jul 13, 2020
@jordwalke jordwalke deleted the AngleBrackets branch July 13, 2020 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants