Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsChange keywords
https://www.eclipse.org/forums/index.php/mv/msg/796325/1404032/#msg_1404032
Now I need to modify the AST to recognize some other words (differente than standard lua) for my cnc interpreter that have some instructions like C (define for example).
Now I compile fine the project but which files need to modify ?
Treewalk.mlua? I have tried but nothing happen.
Someone help me?
Thanks
Fabio]]>Fabio Tiozzo2014-07-29T09:17:07-00:00Re: Change keywords
https://www.eclipse.org/forums/index.php/mv/msg/796325/1404465/#msg_1404465
To add some keyword to the language, you should modify the language grammar.
I am not an MetaLua expert, but here some links to help you:
Good luck
Marc]]>Marc Aubry2014-08-01T14:20:10-00:00Re: Change keywords
https://www.eclipse.org/forums/index.php/mv/msg/796325/1408927/#msg_1408927
Fabio Tiozzo2014-08-16T14:16:42-00:00Re: Change keywords
https://www.eclipse.org/forums/index.php/mv/msg/796325/1408928/#msg_1408928
I've tried to modify these files but nothing happens.
Do you have an example to insert a new keyword like 'define' C statement?
Please help me.
thanks a lot for your support]]>Fabio Tiozzo2014-08-16T14:18:10-00:00Re: Change keywords
https://www.eclipse.org/forums/index.php/mv/msg/796325/1420166/#msg_1420166
I am sorry, but there is no easy way to add keyword to our code analysis chain.
We will try to make the grammar code more newcomer friendly (maybe a tutorial or documentation ?) for the next release.
Marc]]>Marc Aubry2014-09-09T15:52:05-00:00Re: Change keywords
https://www.eclipse.org/forums/index.php/mv/msg/796325/1547617/#msg_1547617
thank you for attention.
I need an IDE for a modified LUA (CNC controller) that work with with a custom lua compiler.
This compiler has some keywords derived from C language like
* define
* switch case
*ifedf
and others.
Is'nt possibile to modify the code parser or you can explain to me how to modify.