|Library of keywords, function, and method signatures [message #1020181]
||Sun, 17 March 2013 13:15
| Steve Kallestad
Registered: March 2013
I have what I think is a pretty common task in front of me.|
My language has a variety of built-in functions or methods. End users can build their own.
I want to accomplish a few things:
1) validate parameters (right number of params, right data types)
2) templated function completion.
I want to know what strategies are generally used as a best practice.
The way java works, the libraries on the end users machine are searched and a dynamic template proposal is offered.
That seems like the road I should be going down, but I thought I'd ask if there was a built-in way or barring that if anyone has an implementation example or tutorial to share. (My google-fu is not strong this morning)
Also, there could potentially be a lot of data to go through, and I obviously don't want to be reading a bunch of files with every keystroke, so a cache is in order. Is there a built-in cache for storing this kind of data (either from XText or within Eclipse), or am I left to do that on my own?
If I'm on my own, where (within what class) do you generally instantiate your cache so that it can be leveraged in validation/syntax highlighting/template proposals, etc.
Powered by FUDForum
. Page generated in 0.01702 seconds