Re: lexers for Wisent and for Bovine are the same?

Eric Ludlam <[email protected]> Tue, 2 May 2017 20:09:25 -0400
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
On 05/02/2017 10:36 AM, hector wrote:
> Hi.
>
> I have one question and the documentation is not very clear
> about this.
>
> Does Wisent use the same lexer interface as Bovine? In other
> words: can I use a lexer written using the semantic
> infrastructure (analyzers) with Wisent?

You can use the same lexer for both bovine and wisent.

> If wisent just needs a list of tokens, can I write a
> function that generates this from scratch?

Yep, you can do that too.  You just need to produce the same style tokens.

You will probably find it is easier to just use define-lex since that 
lets you define individual match cases and then group them together 
later.  For each case, some you can have wisent create from your defined 
tokens, use a predefined one such as for comments, newlines, etc, or 
write your own.

Eric

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot