DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:parser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
devel:parser [2015-09-10 20:47] – [Handler] torpedodevel:parser [2015-09-13 12:02] – old revision restored (2014-01-08 22:01) ach
Line 226: Line 226:
   * ''$match'': the text that was matched   * ''$match'': the text that was matched
   * ''$state'': this is a constant which describes how exactly the match was made;   * ''$state'': this is a constant which describes how exactly the match was made;
-    ''DOKU_LEXER_ENTER = 1'': matched an entry pattern (see Lexer::addEntryPattern) +    ''DOKU_LEXER_ENTER'': matched an entry pattern (see Lexer::addEntryPattern) 
-    ''DOKU_LEXER_MATCHED = 2'': matched a pattern (see Lexer::addPattern) +    ''DOKU_LEXER_MATCHED'': matched a pattern (see Lexer::addPattern) 
-    ''DOKU_LEXER_UNMATCHED = 3'': some text found inside the mode which matched no patterns +    ''DOKU_LEXER_UNMATCHED'': some text found inside the mode which matched no patterns 
-    ''DOKU_LEXER_EXIT = 4'': matched an exit pattern (see Lexer::addExitPattern) +    ''DOKU_LEXER_EXIT'': matched an exit pattern (see Lexer::addExitPattern) 
-    ''DOKU_LEXER_SPECIAL = 5'': matched a special pattern (see Lexer::addSpecialPattern)+    ''DOKU_LEXER_SPECIAL'': matched a special pattern (see Lexer::addSpecialPattern)
   * ''$pos'': this is the byte index (strlen from start) where the //start// of the token was found. ''$pos + strlen($match)'' should give the byte index of the end of the match   * ''$pos'': this is the byte index (strlen from start) where the //start// of the token was found. ''$pos + strlen($match)'' should give the byte index of the end of the match
  
devel/parser.txt · Last modified: 2023-09-18 16:38 by 69.14.68.110

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki