PHP 클래스 SassScriptLexer
Lexes SassSCript into tokens for the parser.
Implements a {@link http://en.wikipedia.org/wiki/Shunting-yard_algorithm Shunting-yard algorithm} to provide {@link http://en.wikipedia.org/wiki/Reverse_Polish_notation Reverse Polish notation} output.
파일 보기
프로젝트 열기: richthegeek/phpsass
1 사용 예제들
공개 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$instance |
|
Static holder for last instance of SassScriptLexer |
|
$parser |
|
the parser object |
|
공개 메소드들
메소드 |
설명 |
|
__construct ( $parser ) : SassScriptLexer |
SassScriptLexer constructor. |
|
isWhitespace ( string $subject ) : mixed |
Returns a value indicating if a token of this type can be matched at
the start of the subject string. |
|
lex ( string $string, SassContext $context ) : array |
Lex an expression into SassScript tokens. |
|
메소드 상세
SassScriptLexer constructor.
public __construct ( $parser ) : SassScriptLexer |
리턴 |
SassScriptLexer |
|
Returns a value indicating if a token of this type can be matched at
the start of the subject string.
Lex an expression into SassScript tokens.
public lex ( string $string, SassContext $context ) : array |
$string |
string |
expression to lex |
$context |
SassContext |
the context in which the expression is lexed |
리턴 |
array |
tokens |
프로퍼티 상세
$instance 공개적으로 정적으로 프로퍼티
Static holder for last instance of SassScriptLexer