CVS update: /cowiki/includes/cowiki/class/parse/
[email protected] 21 Mar 2005 18:05:03 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: cmarble Date: 05/03/21 10:05:03 Modified: /cowiki/includes/cowiki/class/parse/ class.WikiParser.php Log: Reinserted the constants documentation. Sorry about that. Er, will this do? File Changes: Directory: /cowiki/includes/cowiki/class/parse/ =============================================== File [changed]: class.WikiParser.php Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/parse/class.WikiParser.php?r1=1.44&r2=1.45 Delta lines: +111 -24 ---------------------- --- class.WikiParser.php 21 Mar 2005 16:45:50 -0000 1.44 +++ class.WikiParser.php 21 Mar 2005 18:05:03 -0000 1.45 @@ -2,7 +2,7 @@ /** * - * $Id: class.WikiParser.php,v 1.44 2005/03/21 16:45:50 cmarble Exp $ + * $Id: class.WikiParser.php,v 1.45 2005/03/21 18:05:03 cmarble Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -21,7 +21,7 @@ * @author Daniel T. Gorski, <[email protected]> * @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.44 $ + * @version $Revision: 1.45 $ * */ @@ -31,29 +31,116 @@ // On the other hand, the coWiki syntax is quite loose and is not easy // to express by a BNF parser, IMO. +/** + * coWiki token "no operation" + */ +define('WIKI_TOKEN_NOOP', 1); + +/** + * coWiki token "preformated" + */ +define('WIKI_TOKEN_PRE', 2); + +/** + * coWiki token "source code" + */ +define('WIKI_TOKEN_CODE', 3); + +/** + * coWiki token "posting" + */ +define('WIKI_TOKEN_POSTING', 4); + +/** + * coWiki token "hyperlink" + */ +define('WIKI_TOKEN_LINK', 5); + +/** + * coWiki token "Uniform Ressource Identifier (URI)" + */ +define('WIKI_TOKEN_URI', 6); + +/** + * coWiki token "Table of Contents (ToC)" + */ +define('WIKI_TOKEN_TOC', 7); + +/** + * coWiki token "plugin with parameter(s)" + */ +define('WIKI_TOKEN_PARAM_PLUGIN', 8); + +/** + * coWiki token "plugin without parameter(s)" + */ +define('WIKI_TOKEN_SIMPLE_PLUGIN', 9); + +/** + * coWiki token "heading" + */ +define('WIKI_TOKEN_HEADING', 10); + +/** + * coWiki token "horicontal ruler" + */ +define('WIKI_TOKEN_HR', 11); + +/** + * coWiki token "list" + */ +define('WIKI_TOKEN_LIST', 12); + +/** + * coWiki token "quotation" + */ +define('WIKI_TOKEN_QUOTE', 13); + +/** + * coWiki token "system variable" + */ +define('WIKI_TOKEN_VAR', 14); + +/** + * coWiki token "line break" + */ +define('WIKI_TOKEN_BREAK', 15); + +/** + * coWiki token "table with parameter(s)" + */ +define('WIKI_TOKEN_PARAM_TABLE', 16); + +/** + * coWiki token "table without parameter(s)" + */ +define('WIKI_TOKEN_SIMPLE_TABLE', 17); + +/** + * coWiki token "remark" + */ +define('WIKI_TOKEN_REM', 18); + +/** + * coWiki token "subscript" + */ +define('WIKI_TOKEN_SUB', 19); + +/** + * coWiki token "superscript" + */ +define('WIKI_TOKEN_SUP', 20); + +/** + * coWiki token "justification" + */ +define('WIKI_TOKEN_JUSTIFICATION', 21); + +/** + * coWiki token "emphasis" + */ +define('WIKI_TOKEN_EMPHASIS', 22); - define('WIKI_TOKEN_NOOP', 1); - define('WIKI_TOKEN_PRE', 2); - define('WIKI_TOKEN_CODE', 3); - define('WIKI_TOKEN_POSTING', 4); - define('WIKI_TOKEN_LINK', 5); - define('WIKI_TOKEN_URI', 6); - define('WIKI_TOKEN_TOC', 7); - define('WIKI_TOKEN_PARAM_PLUGIN', 8); - define('WIKI_TOKEN_SIMPLE_PLUGIN', 9); - define('WIKI_TOKEN_HEADING', 10); - define('WIKI_TOKEN_HR', 11); - define('WIKI_TOKEN_LIST', 12); - define('WIKI_TOKEN_QUOTE', 13); - define('WIKI_TOKEN_VAR', 14); - define('WIKI_TOKEN_BREAK', 15); - define('WIKI_TOKEN_PARAM_TABLE', 16); - define('WIKI_TOKEN_SIMPLE_TABLE', 17); - define('WIKI_TOKEN_REM', 18); - define('WIKI_TOKEN_SUB', 19); - define('WIKI_TOKEN_SUP', 20); - define('WIKI_TOKEN_JUSTIFICATION', 21); - define('WIKI_TOKEN_EMPHASIS', 22); /** * coWiki - Wiki parser class * @@ -400,7 +487,7 @@ // -------------------------------------------------------------------- /** - * Create a <pre>-element + * Create a <<pre>>-element * * @access protected * @@ -414,7 +501,7 @@ // -------------------------------------------------------------------- /** - * Create a <code>-element + * Create a <<code>>-element * * @access protected *