trac :: wiki :: parser :: WikiParser :: Class WikiParser

Class WikiParser

source code

    object --+    
             |    
core.Component --+
                 |
                WikiParser

Wiki text parser.
Nested Classes

Inherited from core.Component: __metaclass__

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse(self, wikitext)
Parse wikitext and produce a WikiDOM tree.
source code

Inherited from core.Component: __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from core.Component: implements

Class Variables
  BOLDITALIC_TOKEN = '\'\'\'\'\''
  BOLD_TOKEN = '\'\'\''
  BOLD_TOKEN_WIKICREOLE = '\\*\\*'
  ITALIC_TOKEN = '\'\''
  ITALIC_TOKEN_WIKICREOLE = '//'
  UNDERLINE_TOKEN = '__'
  STRIKE_TOKEN = '~~'
  SUBSCRIPT_TOKEN = ',,'
  SUPERSCRIPT_TOKEN = '\\^'
  INLINE_TOKEN = '`'
  STARTBLOCK_TOKEN = '\\{\\{\\{'
  STARTBLOCK = '{{{'
  ENDBLOCK_TOKEN = '\\}\\}\\}'
  ENDBLOCK = '}}}'
  BULLET_CHARS = u'-*•'
  LINK_SCHEME = '[a-zA-Z][-a-zA-Z0-9+._]*'
  INTERTRAC_SCHEME = '[a-zA-Z.+-]*?'
  QUOTED_STRING = '\'[^\']+\'|\\"[^\\"]+\\"'
  SHREF_TARGET_FIRST = '[\\w/?!#@](?<!_)'
  SHREF_TARGET_MIDDLE = '(?:\\|(?=[^|\\s])|[^|<>\\s])'
  SHREF_TARGET_LAST = '[\\w/=](?<!_)'
  LHREF_RELATIVE_TARGET = '[/\\?#][^\\s\\]]*|\\.\\.?(?:[/\\?#][^...
  XML_NAME = '[\\w:](?<!\\d)[\\w:.-]*?'
  PROCESSOR = '(\\s*)#\\!([\\w+-][\\w+-/]*)'
  PROCESSOR_PARAM = '(?P<proc_pname>[-\\w]+)=(?P<proc_pval>".*?"...
Properties
  rules
  helper_patterns
  external_handlers
  link_resolvers

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

Class Variable Details

LHREF_RELATIVE_TARGET

Value:
'[/\\?#][^\\s\\]]*|\\.\\.?(?:[/\\?#][^\\s\\]]*)?'

PROCESSOR_PARAM

Value:
'(?P<proc_pname>[-\\w]+)=(?P<proc_pval>".*?"|\'.*?\'|[-,\\w]+)'

Property Details

rules

Get Method:
unreachable.rules(self)

helper_patterns

Get Method:
unreachable.helper_patterns(self)

external_handlers

Get Method:
unreachable.external_handlers(self)

link_resolvers

Get Method:
unreachable.link_resolvers(self)