grammatica-users
[Top][All Lists]
Advanced

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

[Grammatica-users] infinite parentheses


From: Steffen Gaede
Subject: [Grammatica-users] infinite parentheses
Date: Tue, 27 Mar 2012 09:50:20 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0

I've following definition:

%tokens%
...
LEFT_PAREN =  "("
RIGHT_PAREN = ")"
...

%productions%
...
W1 = ("(" W1 ")") | ....
...


It's running with something like this:
(bla) => "(" bla ")"

But if I've more then one parenthesis, i've got the error, although it
should be interpreted like this:
((bla)) => "(" (bla) ")" => "(" bla ")"




Steffen Gaede.



reply via email to

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