source:
applications/nimpad/branches/0.2/lib/PEG/EOS.php
@
1488
SVN
| Revision 1488, 439 bytes checked in by anatoo, 10 months ago (diff) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /** |
| 3 | * @package PEG |
| 4 | * @author anatoo<anatoo@nequal.jp> |
| 5 | * @license http://www.opensource.org/licenses/mit-license.php MIT License |
| 6 | * @version $Id: EOS.php 655 2009-04-12 07:26:42Z anatoo $ |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * 文字列の終端にヒットするパーサ。 |
| 11 | * |
| 12 | */ |
| 13 | class PEG_EOS implements PEG_IParser |
| 14 | { |
| 15 | function parse(PEG_IContext $c) |
| 16 | { |
| 17 | if ($c->eos()) return false; |
| 18 | return PEG::failure(); |
| 19 | } |
| 20 | } |
Note: See TracBrowser
for help on using the repository browser.
