| Allow cross-references to "built-in" types [message #1851662] | 
Tue, 12 April 2022 02:59   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hello, 
 
I'm currently implementing a language which generate some boilerplate C++ code. This language has the concept of classes (like in C++/Java) and these classes should be cross-referencable in other parts of the language (like for instance as a parameter to a function, like in Java and C++). 
 
Now the tricky part is that the language should come with some predefined objects (those are not basic types, like int, double, but real existing classes). I was thinking that a way to solve this issue would be to distribute a model file containing the declaration of these classes inside my grammar jar file and make the scope provider somehow aware of this file. However, I have no clue how to implement this properly (or even if that is the proper way of doing this). 
 
Any tips on how this could be achieved? 
 
Thanks
 |  
 |  
  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.07044 seconds