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

Make parsing of parametrized types generic #15

Closed
panyam opened this issue Sep 27, 2016 · 1 comment
Closed

Make parsing of parametrized types generic #15

panyam opened this issue Sep 27, 2016 · 1 comment
Assignees

Comments

@panyam
Copy link
Owner

panyam commented Sep 27, 2016

Currently union[A,B,C], array[A], map[X] are treated specially.

Instead these should be type constructors with type arguments within the square brackets.

general rule is when parsing a type if we have:

TYPE_CLASS TYPE_NAME ? "[" .... "]" that should mark the beginning of a type - probably requires arbirary but bounded token lookup in the parser.

@panyam panyam self-assigned this Sep 30, 2016
@panyam panyam mentioned this issue Sep 30, 2016
@panyam
Copy link
Owner Author

panyam commented Sep 30, 2016

Fixed in 43ca71b

@panyam panyam closed this as completed Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant