[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standalone problem to test syntax rules

From: Bean
Subject: Re: Standalone problem to test syntax rules
Date: Sun, 22 Jul 2007 23:55:46 +0800
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Jul 22, 2007 at 03:06:49PM +0200, Marco Gerards wrote:
> You are right that it has advantages.  But I prefer using an Abstract
> Syntax Tree.  It is used a lot in most literature on parsers, clean
> and easy to understand.
> The disadvantage is that you need a separate free routine for each
> kind of node.  But heck, we can even generalize this!
> I agree there is a lot of room for improvement.  But stepping away
> from using ASTs is not the way to go in my opinion.

Using AST or binary tree is only a matter of choice. If you think AST is
better, I will modify the code to use AST.

Would you take a look at the program, especially the error recover rules. 
I think it can handle all situation, but you never know until it's fully


reply via email to

[Prev in Thread] Current Thread [Next in Thread]