<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.parle-lexer.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'parle-lexer.push.php',
    1 => 'Parle\\Lexer::push',
    2 => 'Add a lexer rule',
  ),
  'up' => 
  array (
    0 => 'class.parle-lexer.php',
    1 => 'Parle\\Lexer',
  ),
  'prev' => 
  array (
    0 => 'parle-lexer.insertmacro.php',
    1 => 'Parle\\Lexer::insertMacro',
  ),
  'next' => 
  array (
    0 => 'parle-lexer.reset.php',
    1 => 'Parle\\Lexer::reset',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/parle/parle/lexer/push.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="parle-lexer.push" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Parle\Lexer::push</h1>
  <p class="verinfo">(PECL parle &gt;= 0.5.1)</p><p class="refpurpose"><span class="refname">Parle\Lexer::push</span> &mdash; <span class="dc-title">Add a lexer rule</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-parle-lexer.push-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Parle\Lexer::push</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$regex</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$id</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Push a pattern for lexeme recognition.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-parle-lexer.push-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">regex</code></dt>
    <dd>
     <p class="para">
      Regular expression used for token matching.
     </p>
    </dd>
   
   
    <dt><code class="parameter">id</code></dt>
    <dd>
     <p class="para">
      Token id. If the lexer instance is meant to be used standalone, this can be an arbitrary number. If the lexer instance is going to be passed to the parser, it has to be an id returned by <span class="methodname"><a href="parle-parser.tokenid.php" class="methodname">Parle\Parser::tokenid()</a></span>.
     </p>
    </dd>
   
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-parle-lexer.push-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Es wird kein Wert zurückgegeben.   
  </p>
 </div>



</div><?php manual_footer($setup); ?>