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

Type parameters in expansion_unit ? #179

Open
MarcMazas opened this issue Jul 8, 2020 · 2 comments
Open

Type parameters in expansion_unit ? #179

MarcMazas opened this issue Jul 8, 2020 · 2 comments

Comments

@MarcMazas
Copy link
Collaborator

MarcMazas commented Jul 8, 2020

Hi
In https://github.com/javacc/javacc/blob/master/src/main/javacc/JavaCC.jj, around line 1305, the grammar shows optional TypeParameters for the production (method, not class). Why is it there? For C++? How can they appear in Java? Thanks.

@zosrothko
Copy link
Member

zosrothko commented Jul 8, 2020

Yes, that's for instantiating C++ template reference. There is a missing check that the syntax should be allowed only for C++ generator... Could you add it?

@MarcMazas MarcMazas reopened this Jul 9, 2020
@MarcMazas
Copy link
Collaborator Author

I'm sorry I'm not the best person to add this check as I am too far from the C++ features...

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

2 participants