I disagree with the defenders who say it is not a kludge. It is a kludge. It was when I wrote it and it is now.
The reason that these features must begin with an o-word is very simple. It made it easier to change the parser. The code simply tests if the line begins with an o-word. If it does, it calls a function that processes o-words. The change was simple and effective. I wrote that set of changes (call, if, then, else, while, return, endsub, do -- plus the expression changes -- eq, ne, le, lt, gt, ge) in about a week while I was on vacation. It IS free. If you don't like that syntax, please feel free to not use it. If you prefer a different syntax, please, please feel free to add it to the interpreter. I won't take offense. Really, I won't. It is a kludge. One of my better ones, I think. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (888)ISO-SEVO (888)476-7386 Newtown, CT 06470 Fax: (203)426-9138 http://www.MarkKenny.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andre' Blanchard Sent: Tuesday, August 21, 2007 11:07 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Interactive machining At 08:11 AM 8/21/2007, you wrote: >On Tuesday 21 August 2007, mgouget wrote: > >Binding EMC2 to a *real* language seems an *excellent* idea to me. > > > > > > > >RS274 is an antique language. Adding O words, named parameters and special > >comments, although very useful when nothing else is available, is only a > >kludge... > > >I highly disagree with that word, its not a 'kludge' but simply is giving >RS274 the same looping and branching abilities the basic cpu is capable of. While it works and is way better then not having it and for the price it is great. I guess the main thing I don't get is, why the strange syntax, what would have been wrong with doing IF THEN and IF GOTO branches and WHILE loops like other CNC controls? IF[#105LE0.0]GOTO8998 IF[#110LE0]GOTO8998 (Do stuff) N8998 IF[]THEN#101=0.0005 WHILE[]DO1 (Do stuff) WHILE[]DO2 (Do stuff) WHILE[]DO3 (Do stuff) END3 END2 END1 I get the feeling that not much research is done into how this stuff has been done in the past. Why reinvent the wheel? __________ Andre' B. Clear Lake, Wi. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users