Call functions from other files [message #1725711] |
Mon, 07 March 2016 03:46  |
Eclipse User |
|
|
|
Hi,
I'm developing a grammar where user will be able to declare functions in the editor or in other files. I would like this editor to be able to recognize when the user call a function developed in another file.
The idea I had for the grammar validation part was to copy function declarations in the editor's text, but hidden of this editor.
For example:
//Part hidden
def addition (var a, var b, var c){
c=a+b;
}
//Part typed by the user in the editor
var a=1;
var b=2;
var c=0;
addition(a,b,c);
I tried to use the setVisibleRegion of my editor's viewer, but it doesn't work.
How could I do that ?
Regards
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26060 seconds