W3C home > Mailing lists > Public > www-style@w3.org > September 2012

[css3-value] calc grammar

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 13 Sep 2012 10:42:50 -0400 (EDT)
To: www-style@w3.org
Message-ID: <alpine.DEB.1.10.1209131033270.24049@wnl.j3.bet>
Hi,
Just to point that the calc grammar [1] is not LR(0) but LR(1), because 
(as often ;) ) of S in 3 productions:

calc    : "calc(" S* sum _S*_ ")";
sum     : product [ _S+_ [ "+" | "-" ] S+ product ]*;
product : unit [ _S*_ [ "*" S* unit | "/" S* NUMBER ] ]*;

[1] http://www.w3.org/TR/2012/CR-css3-values-20120828/#calc-syntax

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Thursday, 13 September 2012 14:42:55 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:19 UTC