help-bison
[Top][All Lists]
Advanced

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

Some problems with the grammar !


From: Rutu Raghu Manchiganti [T]
Subject: Some problems with the grammar !
Date: Wed, 18 Apr 2001 12:21:59 +0530

hi !

I am facing one problem with a grammar of this type :

Assignment:
        TypeAssignment ValueAssignment SupportingProductions
        ;

TypeAssignment:

        TYPE NAME '=' Alist
        ;

ValueAssignment:

        VALUE '=' Alist
        ;

SupportingProductions:
        
        NAME '=' ProductionList
        ;

Alist:
        Item
|       Item Alist
        ;

ProductionList:
        
        Item
|       Item ProductionList
        ;

Item:

        NAME
|       INTEGER
|       REAL
        ;

Ok...the elements in caps are the tokens...now if i give a input like 

TYPE Ele1 = INTEGER Another
VALUE = 1
Another = REAL

It gives me an syntax error..ideally i am trying 2 replace Another with
REAL.

But it gives me a syntax error !! It does not come out of the
ValueAssignment ??

Anyone has any suggestions where i am going wrong ??

Thanx,

Rutu

**************************************
[x] General Business Information
[] Motorola Internal Use only
[] Motorola Confidential Proprietary
**************************************



reply via email to

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