Stubs arguments are not correctly substituted in generated Parser Code

Hello,

I am trying to develop a plugin for language support. When generating the grammar, and certain element is implemented via Stub logic, the implementation of that element won't be built successfully, due to the incorrect substitution of the argument. Please refer to code snippets below:

Stub definition in the grammar: 

 

Interface definition for the Stub: 

Implementation:

Actual results, after Parser Code generation: 

 

Expected results: 

 

I am apologize for eventual redundancy of the question, but the documentation can be challenging time to time for a beginner. If you have any insights, idea or workflow how to achieve desired behavior, I would really appreciate that.

 

I am grateful for any help and in case of any concerns or lack of the information, please let me know.

 

Kind regards,

Michal Kyjovsky.  

5 comments
Comment actions Permalink

Could you please provide full sources of your plugins?

0
Comment actions Permalink

Hello Yann,

 

sorry for the late response, here:

https://github.com/MichalKyjovsky/RoboCoP .

Thank you for your time. 

0
Comment actions Permalink

Sorry this got lost, is it still an issue?

0
Comment actions Permalink

Hello Yan,

Thank you for your response. I really appreciate it.

Yes, unfortunately, it is. In the near future, however, I am not able to return to the project. Therefore, we can close this problem for now, because by the time I return to the project, it will still need to be refactored anyway.

0
Comment actions Permalink

Thanks for the update and again, sorry for not answering earlier.

0

Please sign in to leave a comment.