Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] [snipmatch] headless API for generating code snippets?

Hi,

I spent some time on creating a string based interface here. The interesting parts are those that are yet commented out (e.g., appendMethodCall) but I think you see where this is going. There is no such concept like a "variable" or "type" in the string based template API. In the long run I'd also like to create more complex snippets with it containing e.g. for loops, if statements etc.

If we would get your "runtime" api to this level (not during this gsoc) this would be brilliant. What I'm thinking about, basically, is an API to build Java ASTs with JFace language constructs.

HTH to understand even better what I'm currently thinking of. Stop me if this is non-sense. Andreas? Fabian?

Best,
Marcel


On Aug 30, 2013, at 1:41 PM, stefan.prisca@xxxxxxxxx wrote:

I understand, thanks for the explanation. It’s an interesting idea. It should be possible, but at the moment I don’t know how. Fabian, what do you think about this? 


Back to the top