[ragel-users] ragel-users Digest, Vol 37, Issue 1

M Conrad silverdirk-rgl at silverdirk.com
Thu Oct 20 07:07:37 UTC 2011


I looked at ANTLR a bit, but it seemed like their approach was to add lots  
of "magic" to an LL parser.

I'm rather fond of the LR algorithms, and while it's harder to make  
friendly error messages with them, the good old "unexpected $token at  
$line,$col" isn't really so bad.

On Wed, 19 Oct 2011 17:42:58 -0400, JesusFreke <jesusfreke at jesusfreke.com>  
wrote:

> I'm not sure if it meets your criteria, but I've used ANTLR and found it  
> to
> be very good. One of the nice things about it is that it includes an  
> "IDE"
> type environment where you can step through the parser on a  
> token-by-token
> basis, see the rules it is picking and the parse tree it is generating.  
> It
> was an invaluable tool while developing my parser in ANTLR. I only wish I
> had known about ragel at the time. I had wrote my lexer initially with
> ANTLR, and then I rewrote it in jflex for better performance. Now that  
> I've
> used ragel a bit, I may end up doing one more rewrite :)
>
>
>
> On Wed, Oct 19, 2011 at 12:00 PM, <ragel-users-request at complang.org>  
> wrote:
>
>> Send ragel-users mailing list submissions to
>>        ragel-users at complang.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://www.complang.org/mailman/listinfo/ragel-users
>> or, via email, send a message with subject or body 'help' to
>>        ragel-users-request at complang.org
>>
>> You can reach the person managing the list at
>>        ragel-users-owner at complang.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ragel-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. LALR(1) companion tool for Ragel scanner (M Conrad)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 19 Oct 2011 00:06:39 -0400
>> From: "M Conrad" <silverdirk-rgl at silverdirk.com>
>> To: ragel-users at complang.org
>> Subject: [ragel-users] LALR(1) companion tool for Ragel scanner
>> Message-ID: <op.v3kyx4llah38gt at osangar.int.intellitree.com>
>> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
>>
>> Hi, I am wondering if there is a good LALR(1) parser generator for use
>> with Ragel that has as nice of a host-language interface as Ragel does.
>>
>> I found Lemon, but it generates almost unreadable code, and half the  
>> time
>> it tells me about errors in my grammar with meaningless assertion  
>> errors.
>> Also, I really like the way Ragel can be inlined with the host language,
>> and would like to find a parser-generator to match.
>>
>> If one doesn't exist, I am considering writing one.  (I've written the
>> LALR(1) algorithm in Java before, so it wouldn't be that hard) But, I
>> don't want to waste effort if it is redundant.
>>
>> Can anyone point me to other LR parsers that you like?
>>
>> Thanks,
>> -Mike
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> ragel-users mailing list
>> ragel-users at complang.org
>> http://www.complang.org/mailman/listinfo/ragel-users
>>
>> End of ragel-users Digest, Vol 37, Issue 1
>> ******************************************
>>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/

_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users



More information about the ragel-users mailing list