README

[Raku CSS Project] / [CSS-Specification]

CSS-Specification-raku

This is a Raku module for parsing CSS property definitions.

These are widely used throughout the W3C CSS Specifications to describe properties. The syntax is described in http://www.w3.org/TR/CSS21/about.html#property-defs.

An example, from http://www.w3.org/TR/CSS21/propidx.html:

'content'	normal
           | none
           | [  <string> | <uri> | <counter> | attr(<identifier>)
              | open-quote | close-quote | no-open-quote | no-close-quote
             ]+
           | inherit

Grammars and Classes

  • CSS::Specification::Build is class for generating PerlΒ 6 grammar, actions or roles from sets of CSS property definitions.

This module also provides some mixin grammars and actions as follows:

  • CSS::Specification::Defs + CSS::Specification::Defs::Actions - is a grammar which maps property specification terminology to CSS Core syntax and defines any newly introduced terms. For example integer is mapped to int.

Programs

This module provides css-gen-properties. A program for translating property definitions to grammars, actions or interface classes.

See Also

See make-modules.raku in CSS::Module.

CSS::Specification v0.4.12

CSS Property definition grammar and generation tools

Authors

  • David Warring

License

Artistic-2.0

Dependencies

CSS::Grammar:ver<0.3.9+>Color::Names

Test Dependencies

Provides

  • CSS::Specification
  • CSS::Specification::AST
  • CSS::Specification::Actions
  • CSS::Specification::Build
  • CSS::Specification::Defs
  • CSS::Specification::Defs::Actions

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.