[Mapcss] ::subpart syntax
Thomas Davie
tom.davie at gmail.com
Sun Apr 22 14:32:04 BST 2012
OpenStreetPad's grammar for this specifies:
Selector ::= <Subselector>+ <LayerIdentifier>?;
LayerIdentifier ::= '::' 'Identifier';
Subselector ::= <Object> 'Whitespace' | <Object> <Zoom> <Test>* | <Object> <Test>* | <Object> 'Whitespace' <Class>;"
i.e. layer identifiers come at the end of selectors, not at the end of sub selectors, so indeed, your latter example would not parse.
Bob
if (*ra4 != 0xffc78948) { return false; }
On 22 Apr 2012, at 13:36, Kal Conley wrote:
> Hi,
> I would like to get a clarification on the proposed ::subpart syntax.
> Would happens in cases with combinators? In particular the following is
> valid:
>
> way > node::A {
>
> but what about:
>
> way::B > node::A {
>
> I think these cases should be syntax errors. How are parsers in the wild
> dealing with this currently?
>
> Thanks,
> Kal
>
> _______________________________________________
> Mapcss mailing list
> Mapcss at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/mapcss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20120422/d29a7311/attachment.html>
More information about the Mapcss
mailing list