Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » Change keywords
Change keywords [message #1417176] Tue, 29 July 2014 09:17 Go to next message
Fabio Tiozzo is currently offline Fabio TiozzoFriend
Messages: 20
Registered: December 2013
Junior Member
Hi, thanks for the other answers.
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
Re: Change keywords [message #1417181 is a reply to message #1417176] Fri, 01 August 2014 14:20 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 76
Registered: July 2009
Member
Hi Fabio,

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:

The github metalua repository:
https://github.com/fab13n/metalua

The last known documentation of metalua (not uptodate):
https://github.com/fab13n/metalua/blob/master/doc/manual/metalua-manual.pdf?raw=true

The metalua code is integrated in LDT here (but it seems already found it):
http://git.eclipse.org/c/ldt/org.eclipse.ldt.git/tree/libraries/metalua

Good luck :)
Marc
Re: Change keywords [message #1417184 is a reply to message #1417181] Sat, 16 August 2014 14:16 Go to previous message
Fabio Tiozzo is currently offline Fabio TiozzoFriend
Messages: 20
Registered: December 2013
Junior Member
No Message Body
Previous Topic:Debugger with launch script
Next Topic:Re: Change keywords
Goto Forum:
  


Current Time: Fri Sep 21 19:13:25 GMT 2018

Powered by FUDForum. Page generated in 0.01395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top