Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-02-06 (12:24)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] syntax

On Tue, Feb 05, 2002 at 01:47:31PM -0800, Michael Vanier wrote:

> I've looked at the revised syntax, and I like most of what I see (except
> for the use of x.val instead of !x).  One question: how many shift-reduce
> conflicts does the revised syntax have?  

There is no notion of shift-reduce in recursive descent parsing: the
system tries to shift until it cannot do it any more.

To decide to "reduce", you must know which non-terminal called you,
but you don't have this information, exactly like in a function, you
don't know which function called you.

To know if there are shift-reduce or reduce-reduce conflicts in the
revised syntax, one should rewrite it under yacc.

Bug reports:  FAQ:
To unsubscribe, mail  Archives: