Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] RFC: Templates preprocessor syntax proposal

I suggest looking at the new template engine I'm using for Arduino and Qt projects. It uses Freemarker which probably does what you need.

It's available in a separate git repo under CDT called org.eclipse.tools.templates.

Sent from my BlackBerry - the most secure mobile device - via the Rogers Network
From:ilg@xxxxxxxxxx
Sent:August 4, 2016 9:41 AM
To:cdt-dev@xxxxxxxxxxx
Reply-to:cdt-dev@xxxxxxxxxxx
Subject:[cdt-dev] RFC: Templates preprocessor syntax proposal

I'm currently studying how to refurbish the templates mechanism, aiming for a more elaborate GNU ARM Eclipse wizard, based on components.

The current CDT templates engine provides only simple substitution capabilities.

My needs include scripting, to implement conditional and possibly iterative code.

To cut a long story short, the proposal is to encode in the template files both _javascript_ and the application code (in my case C/C++).

Processing the templates should be done in two steps:

- an Eclipse plug-in will convert the template into a plain _javascript_ code
- a JS runtime will run the JS code in the environment of the template, with different selections from the wizard

The long story is available from http://xcdl.github.io/work/preprocessor/.

Any comments on this approach?

Regards,

Liviu


p.s. Personally I'm slowly moving my projects away from XML and closer to JSON and _javascript_.










_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top