[antlr-interest] Testing lexer grammars with gunit

Jim Idle jimi at temporal-wave.com
Mon Nov 23 13:48:25 PST 2009


Not sure myself - it might be coded for composite grammars I suppose. What you could do though is create a small grammar that imports your lexer and has a dummy parse rule, then test that grammar. This would be a workaround of course.

 

Jim

 

From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Cameron Ross
Sent: Monday, November 23, 2009 6:06 AM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Testing lexer grammars with gunit

 

Anyone?

On Wed, Nov 18, 2009 at 4:03 PM, Cameron Ross <cross at kojeware.com> wrote:

Hi,

 

I have a lexer grammar that I'd like to test using gunit.  However, the way I have things configured, gunit assumes a composite grammar.  Is there a way that I can tell gunit that the grammar being tested is a lexer grammar?

 

Thanks,

Cameron.




-- 
Cameron Ross
Director of Technology
Kojeware Corporation
705-929-1492



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091123/74c4d47a/attachment.html 


More information about the antlr-interest mailing list