Add partial pattert matching doc for parle

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343034 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Anatol Belski 2017-09-09 22:19:58 +00:00
parent 8ba28274df
commit 9a33a4fa64
2 changed files with 80 additions and 0 deletions

View file

@ -13,6 +13,7 @@
</preface>
&reference.parle.setup;
&reference.parle.pattern.matching;
&reference.parle.parle.lexer;
&reference.parle.parle.token;
&reference.parle.parle.parser;

View file

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 343033 $ -->
<chapter xml:id="parle.pattern.matching" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Parle pattern matching</title>
<titleabbrev>Pattern matching</titleabbrev>
<para>Parle supports a simplified regex matching. The supported syntax is the subset of the features defined by PCRE.</para>
<section xml:id="parle.regex.syntax">
<title>Character representations</title>
<para>
<table>
<title>Character representations</title>
<tgroup cols="2">
<thead>
<row>
<entry>Sequence</entry><entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>\a</entry><entry>Alert (bell).</entry>
</row>
<row>
<entry>\b</entry><entry>Backspace.</entry>
</row>
<row>
<entry>\e</entry><entry>ESC, \x1b.</entry>
</row>
<row>
<entry>\n</entry><entry>Newline.</entry>
</row>
<row>
<entry>\r</entry><entry>Carriage return.</entry>
</row>
<row>
<entry>\f</entry><entry>Form feed, \x0c.</entry>
</row>
<row>
<entry>\t</entry><entry>Horizontal tab, \x09.</entry>
</row>
<row>
<entry>\v</entry><entry>Vertical tab, \x0b.</entry>
</row>
<row>
<entry>\oct</entry><entry>Character specified by a three-digit octal code.</entry>
</row>
<row>
<entry>\xhex</entry><entry>Character specified by a hex code.</entry>
</row>
<row>
<entry>\cchar</entry><entry>Named control character.</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</section>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->