![]() |
PEEL Shopping
Open source ecommerce : PEEL Shopping
|
Represents a token stream. More...
Public Member Functions | |
| __construct (array $tokens, $filename=null) | |
| Constructor. More... | |
| __toString () | |
| Returns a string representation of the token stream. More... | |
| injectTokens (array $tokens) | |
| next () | |
| Sets the pointer to the next token and returns the old one. More... | |
| expect ($type, $value=null, $message=null) | |
| Tests a token and returns it or throws a syntax error. More... | |
| look ($number=1) | |
| Looks at the next token. More... | |
| test ($primary, $secondary=null) | |
| Tests the current token. More... | |
| isEOF () | |
| Checks if end of stream was reached. More... | |
| getCurrent () | |
| Gets the current token. More... | |
| getFilename () | |
| Gets the filename associated with this stream. More... | |
Protected Attributes | |
| $tokens | |
| $current | |
| $filename | |
Represents a token stream.
Definition at line 18 of file TokenStream.php.
| __construct | ( | array | $tokens, |
$filename = null |
|||
| ) |
Constructor.
| array | $tokens | An array of tokens |
| string | $filename | The name of the filename which tokens are associated with |
Definition at line 30 of file TokenStream.php.
| __toString | ( | ) |
Returns a string representation of the token stream.
Definition at line 42 of file TokenStream.php.
| expect | ( | $type, | |
$value = null, |
|||
$message = null |
|||
| ) |
Tests a token and returns it or throws a syntax error.
Definition at line 71 of file TokenStream.php.
| getCurrent | ( | ) |
| getFilename | ( | ) |
Gets the filename associated with this stream.
Definition at line 140 of file TokenStream.php.
| injectTokens | ( | array | $tokens | ) |
Definition at line 47 of file TokenStream.php.
| isEOF | ( | ) |
| look | ( | $number = 1 | ) |
Looks at the next token.
| integer | $number |
Definition at line 96 of file TokenStream.php.
| next | ( | ) |
Sets the pointer to the next token and returns the old one.
Definition at line 57 of file TokenStream.php.
| test | ( | $primary, | |
$secondary = null |
|||
| ) |
|
protected |
Definition at line 21 of file TokenStream.php.
|
protected |
Definition at line 22 of file TokenStream.php.
|
protected |
Definition at line 20 of file TokenStream.php.
This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:45 -
is a product of
SAS. All rights reserved.