Neil Baylis wrote:
> On Mon, Jan 24, 2011 at 9:08 AM, Jack Coats<[email protected]>  wrote:
>
>    
>> http://www.cncgadgets.com/cncfree/Aztec-Mayan%20Calendar%20G-code.zip
>> Has a freely available Aztec/Myan type Calendar.  A bit over 11MBytes I am
>> told.
>>
>> Is that sufficient?
>>
>> I found it by doing a Google search for "aztec calendar g-code" and
>> CNCZone where I found this
>> link a is free forum.
>>
>>      
>>> <>  ... Jack
>>>        
>
> Thanks Jack. This file uncovered some deficiencies with my highlighter, so
> back to the drawing board.
>    
I haven't looked at that particular file, but I can point out a few 
things that were "interesting" when making the gedit hilighter.  (I 
didn't do it, but I did help out somewhat in the form of IRC 
conversations with the person who did the actual work)

1) Whitespace is irrelevant to the G-code parser.  "X12.34" is identical 
to "X1 2. 3 4" in EMC.
2) G-code is case insensitive.  I noticed in the lisp snippet that you 
have various keywords in all caps and all lower case, but not mixed 
case, which is also legal in EMC.  So any of "and", "anD", "aNd", "aND", 
"And", "AnD", "ANd", and "AND" are valid G-code.
3) My opinion is that the numbers should be colored differently than the 
words they go with.  so in G0X12.34, G should be one color, the two 
numbers "0" and "12.34" should be another color, and "X", being an axis 
word, should be a different color.  I don't know if the code is capable 
of doing that, since the screenshot shows codes and numbers as having 
one style (like "g0")

Thanks for the efforts :)

- Steve


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to