Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [scite] Write a lexer: Confused about interface
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
KHMan  
View profile  
 More options May 5 2011, 12:43 pm
From: KHMan <keinh...@gmail.com>
Date: Fri, 06 May 2011 00:43:53 +0800
Local: Thurs, May 5 2011 12:43 pm
Subject: Re: [scintilla] Re: [scite] Write a lexer: Confused about interface
On 5/5/2011 7:22 PM, Andreas Tscharner wrote:

> On 04.05.2011 14:25, Randy Kramer wrote:
>>[snip snip snip]
>> To be somewhat specific, there are a lot of lexers, and finding
>> one or
>> more lexers that deal with a language something like the language
>> you're targeting will be more useful than one that is not like the
>> language you're targeting.

> The final product has to lex DMIS, a language for CMMs
> (http://en.wikipedia.org/wiki/Coordinate-measuring_machine). I
> haven't found another language that has only a slight resemblance.

I found the NISTIR 6012 PDF (The NIST DMIS Interpreter) on the
'net. Recognizing words, strings, numbers and operators is a good
baseline.

It looks line-based, so the lexer can rewind to a start-of-line
for easy processing. If words are unique, keeping some state will
enable highlighting of words based on their position in a statement.

A lexer can probably be cobbled together with the help of bits and
pieces from different lexers...

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.