CSS::SAC::LexicalUnit 0.06
Sponsored Links
CSS::SAC::LexicalUnit 0.06 Ranking & Summary
File size:
0.037 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
857
Date added:
2007-06-20
Publisher:
Robin Berjon
CSS::SAC::LexicalUnit 0.06 description
CSS::SAC::LexicalUnit is a Perl module that contains SAC units.
SYNOPSIS
use CSS::SAC::LexicalUnit qw(:constants);
foo if $lu->is_type(LU_TYPE_CONSTANT);
In the SAC spec, LexicalUnit is a linked list, that is, you only ever hold one LexicalUnit, and you ask for the next of for the previous one when you want to move on.
Such a model seems awkward, though Im sure it makes sense somehow in Java, likely for a Java-specific reason.
In the Perl implementation, I have changed this. A LexicalUnit is an object that stands on its own and has no next/previous objects. Instead, the $handler->property callback gets called with a LexicalUnitList, which is in fact just an array ref of LexicalUnits.
We also dont differentiate between IntegerValue, FloatValue, and StringValue, its always Value in Perl. This also applies to Parameters and SubValues. Both are called as Value and return an array ref of LexicalUnits.
I added the is_type() method, see CSS::SAC::Condition for advantages of that approach.
CONSTANTS
- ATTR
- CENTIMETER
- COUNTER_FUNCTION
- COUNTERS_FUNCTION
- DEGREE
- DIMENSION
- EM
- EX
- FUNCTION
- GRADIAN
- HERTZ
- IDENT
- INCH
- INHERIT
- INTEGER
- KILOHERTZ
- MILLIMETER
- MILLISECOND
- OPERATOR_COMMA
- OPERATOR_EXP
- OPERATOR_GE
- OPERATOR_GT
- OPERATOR_LE
- OPERATOR_LT
- OPERATOR_MINUS
- OPERATOR_MOD
- OPERATOR_MULTIPLY
- OPERATOR_PLUS
- OPERATOR_SLASH
- OPERATOR_TILDE
- PERCENTAGE
- PICA
- PIXEL
- POINT
- RADIAN
- REAL
- RECT_FUNCTION
- RGBCOLOR
- SECOND
- STRING_VALUE
- SUB_EXPRESSION
- UNICODERANGE
- URI
METHODS
CSS::SAC::LexicalUnit->new($type,$text,$value) or $lu->new($type,$text,$value)
Creates a new unit. The $type must be one of the type constants, the text depends on the type of unit (unit text, func name, etc...), and the value is the content of the lu.
$lu->DimensionUnitText([$dut]) or getDimensionUnitText
get/set the text of the dimension unit (eg cm, px, etc...)
$lu->FunctionName([$fn]) or getFunctionName
get/set the name of the function (eg attr, uri, etc...)
$lu->Value([$value]) or getValue
get/set the value of the lu (which may be another lu, or a lu list)
$lu->LexicalUnitType([$type]) or getLexicalUnitType
get/set the type of the lu
$lu->is_type($lu_constant)
returns true is this lu is of type $lu_constant
SYNOPSIS
use CSS::SAC::LexicalUnit qw(:constants);
foo if $lu->is_type(LU_TYPE_CONSTANT);
In the SAC spec, LexicalUnit is a linked list, that is, you only ever hold one LexicalUnit, and you ask for the next of for the previous one when you want to move on.
Such a model seems awkward, though Im sure it makes sense somehow in Java, likely for a Java-specific reason.
In the Perl implementation, I have changed this. A LexicalUnit is an object that stands on its own and has no next/previous objects. Instead, the $handler->property callback gets called with a LexicalUnitList, which is in fact just an array ref of LexicalUnits.
We also dont differentiate between IntegerValue, FloatValue, and StringValue, its always Value in Perl. This also applies to Parameters and SubValues. Both are called as Value and return an array ref of LexicalUnits.
I added the is_type() method, see CSS::SAC::Condition for advantages of that approach.
CONSTANTS
- ATTR
- CENTIMETER
- COUNTER_FUNCTION
- COUNTERS_FUNCTION
- DEGREE
- DIMENSION
- EM
- EX
- FUNCTION
- GRADIAN
- HERTZ
- IDENT
- INCH
- INHERIT
- INTEGER
- KILOHERTZ
- MILLIMETER
- MILLISECOND
- OPERATOR_COMMA
- OPERATOR_EXP
- OPERATOR_GE
- OPERATOR_GT
- OPERATOR_LE
- OPERATOR_LT
- OPERATOR_MINUS
- OPERATOR_MOD
- OPERATOR_MULTIPLY
- OPERATOR_PLUS
- OPERATOR_SLASH
- OPERATOR_TILDE
- PERCENTAGE
- PICA
- PIXEL
- POINT
- RADIAN
- REAL
- RECT_FUNCTION
- RGBCOLOR
- SECOND
- STRING_VALUE
- SUB_EXPRESSION
- UNICODERANGE
- URI
METHODS
CSS::SAC::LexicalUnit->new($type,$text,$value) or $lu->new($type,$text,$value)
Creates a new unit. The $type must be one of the type constants, the text depends on the type of unit (unit text, func name, etc...), and the value is the content of the lu.
$lu->DimensionUnitText([$dut]) or getDimensionUnitText
get/set the text of the dimension unit (eg cm, px, etc...)
$lu->FunctionName([$fn]) or getFunctionName
get/set the name of the function (eg attr, uri, etc...)
$lu->Value([$value]) or getValue
get/set the value of the lu (which may be another lu, or a lu list)
$lu->LexicalUnitType([$type]) or getLexicalUnitType
get/set the type of the lu
$lu->is_type($lu_constant)
returns true is this lu is of type $lu_constant
CSS::SAC::LexicalUnit 0.06 Screenshot
CSS::SAC::LexicalUnit 0.06 Keywords
SAC
LexicalUnit
CSS
OPERATOR
LexicalUnit 0.06
FUNCTION
Perl module
type
Lu
value
Perl
text
module
CSS::SAC::LexicalUnit
CSSSACLexicalUnit
CSS::SAC::LexicalUnit 0.06
Bookmark CSS::SAC::LexicalUnit 0.06
CSS::SAC::LexicalUnit 0.06 Copyright
WareSeeker periodically updates pricing and software information of CSS::SAC::LexicalUnit 0.06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of CSS::SAC::LexicalUnit 0.06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
operator band
value city department store
tour operators
blue book value
operator music
value city furniture store
lexical unit
operator c++
value city furniture
type url
operator soulcrusher
value furniture
heavy equipment operator
nada used car values
blood types
heavy equipment operator jobs
valuev
operatorperry
Related Software
CSS::SAC Perl module is a SAC CSS parser. Free Download
CSS::SAC::ConditionFactory Perl module contains the default ConditionFactory. Free Download
Text::VisualWidth is a Perl module that provides functions to treat half-width and full-width characters. Free Download
Text::Highlight is a syntax highlighting framework. Free Download
Search::FreeText is a free text indexing module for medium-to-large text corpuses. Free Download
Compass::Bearing is a Perl module to convert angle to text bearing (aka heading). Free Download
Archive::Chm is a Perl module that performs some read-only operations on HTML help (.chm) files. Free Download
GD::Text is a Perl module with text utilities for use with GD. Free Download
Latest Software
Popular Software
Favourite Software