# -*- coding: utf-8 -*
#Add instructions

import sys
import wikic
import time

def Run(text):
    parser = wikic.new(0)
    result = parser.parse(text)
    return result

if __name__ == '__main__':
    text = u"""
|| fghf[[gfgj]]fgjf||egtertzetz||
||retzerzerz   || erterzeruzrz||
{|
|df''hfgjfgg''hk
|hgdfhfgj
|-
|two
|dfhdfjhfkghkg
|}
BisonGen creates LALR parsers from a formal grammar input file, as C python extension using Gnu Bison '''and''' in pure python.

 * http://www.gnu.org/software/bison/manual/html_mono/bison.html
 * ftp://ftp.fourthought.com/pub/BisonGen/
 * http://docs.python.org/ext/building.html
 * irc://irc.freenode.net/4suite
 * http://meta.wikipedia.org/wiki/Wikipedia lexer
 * http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page

== Some usage notes ==

=== Lexer states ===
In the <lexer> section it's possible to define states which determine which token patterns the lexer is looking for while scanning:

{{{    <states>
          <exclusive>OPERATOR</exclusive>
       </states>
}}}
The default state is INITIAL, this adds an additional OPERATOR state. <exclusive> tells the lexer to only apply OPERATOR rules when in this state, anything else like <inclusive> will extend the INITIAL (toplevel) rules if the state is active. Multiple states can be active at the same time. Rules for a state are placed inside a scope block:
{{{
<scope state='OPERATOR'>
   <pattern expression='or'>
        <begin>INITIAL</begin>
        <token>OR</token>
   </pattern>
   <!-- more rules -->
</scope>
}}}
'''My tüöüöüest wiki has moved to http://testwikidevnet.'''

== Me[[diaWiki hos]]ting ==
~~~
[[image:wiki.png|framed|[[test]]]]
<pre>~~~~~
[[image:wiki.png|framed|[[test]]]]
[[test]]
</pre>
<nowiki>[[test]]</nowiki>
^fdsghdfhdf^ ,,sdfgdfhudtzu,,
I'm offering MediaWiki hosting. Things included:
* Hosting on dedicated Server (Debian Gnu/Linux, lowest load, uptime regularly > 200 days, daily rsync backup)
* Mail accounts with Imap/Pop3 access, https webmail, Spamassassin
* Squid cache acceleration for high performance
* Short, clean urls: http://yourdomain.tld/Main_Page instead of http://yourdomain.tld/index.php?title=Main_Page
* Try it riskless for one month- no charge at all if not satisfied.
For more details see [[MediaWiki hosting details]].

;Standard
:3Gb Hd space, 5Gb Transfer (60¢ per additional Gb used): '''15€/month''' incl. MwSt., 49€ setup fee
;Profi
:10Gb Hd space, 15Gb transfer (60¢ per additional Gb used): '''25€/month''' incl. MwSt., 49€ setup fee
[[User:Gwicke|Gabriel Wicke]]<br/> [[[[sfdghdfh]]fghfdg]]
Erichshof 2b<br/>
30989 Gehrden<br/>
Mob +49 177 2065127<br/>
Tel +49 5108 7113

== MediaWiki development ==

=== Recent changes ===
* LTR testwiki: http://test.wikidev.net
* RTL Testwiki: http://rtl.wikidev.net
* User Styles: [[:meta:User styles]]
** test
****tyxgxfdgdsf
* Tabbed prefs (log in and take a look at your prefs)
* Getting close to the release of 1.3, see [http://meta.wikipedia.org/wiki/MediaWiki_roadmap#To_be_done the MediaWiki road map]. Code is live on wikipedia.org since May 29. -- [[User:Gwicke|Gwicke]] 11:02, 18 Jun 2004 (CEST)

'''(Detailed recent changes: [http://mail.wikipedia.org/pipermail/mediawiki-cvs/{{CURRENTYEAR}}-{{CURRENTMONTHNAME}}/date.html#end the cvs commit list.])'''

=== MonoBook skin ===
*'''[[MonoBook|Screenshots and Browser status, add your comments here]]''' If you see bugs in this skin, please upload a screenshot and add a comment/ your browser version!
* Make sure you have the latest css &amp; xhtml by pressing ctrl-f5 (ie, opera) or shift-reload (moz) or by visiting http://wiki.aulinx.de:8000/Main_Page (that bypasses the squid).

Based on the Mono Skin with an added background image (an open book), a bit more interesting.
;tedst : gh~+dfjhfgjf    
tedst:: ghdfj-~hfgjf    
== Me[[diaWiki hosting ==
=='''aWiki''' hos==
{{sdhgdhfjh}}[[{{shdfhfdjfhg}}fghdfh]]
    * fghdfjhfgjghk
    1.#12 cfghdfhdfjfg
    1. b56456
    a. dfjhfgjghk
    I. dfhdfjfg
        * rthfgjurtu
        xcdxhdgjhfg
    fghdfjdjg
    dfgjfgjhfkj
        xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd xfghdjfgkfhkfgth dfjhf fdhdfjd 
"""
    s = time.time()
    result = Run(text)
    e = time.time()
    print result
    print e-s


