On Wednesday 30 October 2013 11:13:35 Bertho Stultiens did opine:

> Hi all,
> 
> Every time I had to write a CNC-mill program using G-codes I got annoyed
> by the archaic format and syntax. Especially when needing to convert
> positional data from mil to mm, having recurring patterns and then also
> trying to keep track of everything.
> 
> I looked for a meta compiler or generic pre-processor, but could not
> find anything that satisfied me. Being able to program should be "easy".
> 
> The G-Code Meta Compiler (gcmc) is just that, a scripting meta language,
> using modern procedural paradigms and a context free grammar, to
> generate G-code. It takes in a script and generates all the movements.
> 
> Units can be assigned/attached to values to do metric/imperial
> conversions automatically. A rich set of built-in functions for G-codes
> and mathematical manipulations make it easy to keep track.
> 
> Variables are typed into integer/floating point (scalars), vectors and
> vector-lists. You can define functions and use local variables. Standard
> loop-control is performed using foreach/for/while/do-while constructs as
> well as conditional execution with if/if-else constructs.
> 
> The context-free grammar allows you to make sources more readable and
> therefore more debug-able.
> 
> You can find the code at my git repository:
>  https://gitorious.org/gcmc/gcmc
> 
> An example script can be found in the "tests" directory (cutter.gcmc)
> and some preliminary documentation about the grammar and built-in
> functions can be found in the doc directory (gcmc.txt).
> 
> Please note that the code is not entirely mature as of yet. However, the
> basics should function properly and you are encouraged to use it and
> take a look.
> 
> If you have any comments you are welcome to provide feedback.

Downloaded but only .txt file read so far.

As someone from the other side of the pond, I am far more comfortable in 
inches than in mm or mils for everyday work, but I think I need to 
understand what a mil is in the definitions you use?

Please, can you define the mm to mil conversion, and how that relates to 
inches for an old man like me who is used to speaking in thousandths for 
everyday precision measurements?

We tried to convert folks to metric here, in the 70's starting with the gas 
pumps for our vehicles, but a lifetime of gallons didn't die gracefully 
because those gas stations that converted the pumps to litre's promptly 
either converted back in 2 weeks, or went broke because the public drove 
right on by looking for a station that still sold by the gallon.

I am in electronics, so to me metric always made sense, but I've been stuck 
in "Rome, doing as the Romans did for 79 years.  This old dog needs to 
learn metric in the physical world, not just in wavelengths.

Thanks.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

Obviously your filters are throwing away mail from Randal.  :-)
                -- Larry Wall in <199710221937.maa25...@wall.org>
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to