SyntaxHilite for CNC

1 view
Skip to first unread message

awmi...@hawkeyetool.com

unread,
Jun 27, 2008, 8:21:14 AM6/27/08
to SemWare
Has anyone wrote a SyntaxHilite Mapping set for CNC "G code"?

knud van eeden

unread,
Jun 27, 2008, 9:55:54 AM6/27/08
to sem...@googlegroups.com
Remark:
step 1. getting the keywords for that language
To get the keywords check
http://en.wikipedia.org/wiki/G-code
The syntax format is thus in general:
Character 'G'
followed by a 'digit'
followed by a 'digit'
With friendly greetings
Knud van Eeden
Kana technical support

noman9607

unread,
Jun 30, 2008, 1:24:19 PM6/30/08
to SemWare
Real life cnc was a bit more complicated than that for me. I know of
no systems that use only '
G' codes because without parameters and macros for aperture definition
etc you have a very primitive system. I used to translate AutoCad dxf
to Gerber RS-274X format years ago. There is no 'standard' cnc that is
accepted universally but Gerber used to be the one most systems could
emulate. Gerber used to put out a publication 414-100-014 they are in
South Windsor, CT (800)243-7270 or at least that number used to be
good. I don't have any old files or I would print the codes here but
there are not that many really...I found the very document on the
internet http://gerbv.sourceforge.net/docs/rs274xrevd_e.pdf
Good luck.

On Jun 27, 9:55 am, knud van eeden <knud_van_ee...@yahoo.com> wrote:
> Remark:
> step 1. getting the keywords for that language
> To get the keywords checkhttp://en.wikipedia.org/wiki/G-code
> The syntax format is thus in general:
> Character 'G'
> followed by a 'digit'
> followed by a 'digit'
> With friendly greetings
> Knud van Eeden
> Kana technical support
>
>
>
> ----- Original Message ----
> From: "awmich...@hawkeyetool.com" <awmich...@hawkeyetool.com>
> To: SemWare <sem...@googlegroups.com>
> Sent: Friday, June 27, 2008 2:21:14 PM
> Subject: [TSE] SyntaxHilite for CNC
>
> Has anyone wrote a SyntaxHilite Mapping set for CNC "G code"?- Hide quoted text -
>
> - Show quoted text -

knud van eeden

unread,
Jun 30, 2008, 3:01:16 PM6/30/08
to sem...@googlegroups.com

Computer: Editor: TSE: Syntax: Highlight: .cnc file: How to
http://www.knudvaneeden.com/tinyurl.php?urlKey=url000139
Reply all
Reply to author
Forward
0 new messages