?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
#!/usr/bin/python
""" Loop - loop examples (Version 0.1)
Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
"""
import sys,string
# engine + constants
from mx.TextTools import *
# use Loop to match a certain number of subtags
table1 = ((None,Word,'loop '),
# match <= 5 stars
('loop',Loop,5,+4),
(None,Is,'*',+1,-1),
(None,LoopControl,Break),
(None,Jump,To,-3),
# must end with a dot
(None,Is,'.'))
# use Loop to tag subsections of a tagging table, i.e.
# emulate a Table-match
table2 = (('presection',AllNotIn,'(',+1),
# match a group of characters enclosed in ()
('section',Loop,1,+4),
(None,Is,'('),
(None,AllNotIn,')'),
(None,Is,')',0,-3),
# must end with a dot
(None,Is,'.'))
# read in all chars and then do lots of null loops
table3 = (('Loops',Loop,10000,MatchOk),
(None,AllNotIn,'',-1,-1))
text = raw_input('loop-example (e.g. "loop *."): ')
result, taglist, nextindex = tag(text,table1)
print 'result =',result,'-- rest of text:',text[nextindex:]
if result:print_tags(text,taglist)
text = raw_input('section-example( e.g. "myfun(params)."): ')
result, taglist, nextindex = tag(text,table2)
print 'result =',result,'-- rest of text:',text[nextindex:]
if result:print_tags(text,taglist)
text = raw_input('null-loops-example (e.g. "some chars"): ')
result, taglist, nextindex = tag(text,table3)
print 'result =',result,'-- rest of text:',text[nextindex:]
if result:print_tags(text,taglist)