Mario is correct that one COULD write a filter that converted named parameters to conventional parameter numbers. (I believe someone -- was it on IRC -- commented about having done this.)
But you couldn't have the limited scoping of parameter names; at least not easily. You would have to essentially interpret the code and generate code with unrolled loops to do that. Mario wrote: <I think it might be more versatile and easier that to rewrite whole g-code parser.> It's a whole lot easier than that. I'm just talking about making some "tweaks" to the existing interpreter. Even adding o-words, subroutines, if/then/else, relational operations, etc., was just a matter of tweaking the interpreter (It took me about a week of my spare time while I was on vacation in the Virgin Islands). I used to build compilers and interpreters for a living, so I have the proper skill set to do the job. Take it from me, I'm lazy enough that if it were a big job, I wouldn't volunteer so quickly. :-) Again, thanks for keeping the discussion going. If I'm going to do this, I'd like to hear the comments first. It's a lot easier to change it in the design phase. Ken [EMAIL PROTECTED] Mark Kenny Products Company, LLC 55 Main Street Voice: (203)426-7166 Newtown, CT 06470 Fax: (203)426-9138 http://www.MarkKenny.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stephen Wille Padnos Sent: Thursday, December 28, 2006 3:48 PM To: EMC developers Subject: Re: [Emc-developers] Proposal For Named Parameters Mario. wrote: >So we could all this orient towards a programmable plugin? >I think it might be more versatile and easier that to rewrite whole >g-code parser. > >If this powerful editing tool is *READILY* available in AXIS, why not use it? > > It's not an editing tool, it's a filter that's applied at load time. You can have it run a dxf -> g-code converter when loading .dxf files, or run the file as a perl / python / whatever program and load the output from that. Internally, the EMC2 system still uses only G-code. Axis just gives you an opportunity to generate G-code auto-magically. - Steve ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
