[DGD] Working with parse_string()

Felix A. Croes felix at dworkin.nl
Mon Jul 20 01:23:34 CEST 2009


Kamil N <kamiln at gmail.com> wrote:

>[...]
> VERB: give OBJI{case=accusative} LIV{case=dative}

In order to solve your second problem, what you probably need is an
ambiguous grammar.

    VERB: polish_give OBJI_ACCUSATIVE LIV_DATIVE
    VERB: polish_give OBJI_ACCUSATIVE SOMETHING
    VERB: polish_give SOMETHING LIV_DATIVE

In order for the second and third option to be considered, parse trees
for earlier ones must be taken out of the game by letting functions
return nil.

Regards,
Felix Croes



More information about the DGD mailing list