Ben Kurtovic
|
d6a0d6b737
|
Update py3k compatibility in some modules.
|
pirms 12 gadiem |
Ben Kurtovic
|
ea28e991d9
|
Merge pull request #3 from Riamse/develop
Forgot to add compat.py (#1)
|
pirms 12 gadiem |
Riamse
|
c4fd7b7468
|
Remove test.py - unintentionally added
|
pirms 12 gadiem |
Riamse
|
a24821057c
|
Forgot to add compat.py
|
pirms 12 gadiem |
Ben Kurtovic
|
dea1612d77
|
Merge pull request #2 from Riamse/develop
Adding Python 3 support experimentally (#1)
|
pirms 12 gadiem |
Riamse
|
aa4b45c1bb
|
Forgot the extras folder
|
pirms 12 gadiem |
Ben Kurtovic
|
e6fa7b2b2d
|
Support changing a template's name, plus a couple of typos and docs.
|
pirms 12 gadiem |
Riamse
|
2eb76e7de0
|
Adding Python 3 support
|
pirms 12 gadiem |
Ben Kurtovic
|
0a052f34fb
|
Clarify Python 3 stuff.
|
pirms 12 gadiem |
Ben Kurtovic
|
ce43b44596
|
Copyedit, fixes, clarify Python 2 + 3 support.
|
pirms 12 gadiem |
Ben Kurtovic
|
59a25818b9
|
Updating documentation.
|
pirms 12 gadiem |
Ben Kurtovic
|
222f3b7dc3
|
Merged feature/parser into develop; good enough for now.
|
pirms 12 gadiem |
Ben Kurtovic
|
fc66ce0654
|
Update remove() for when a templates has the same key multiple times.
|
pirms 12 gadiem |
Ben Kurtovic
|
e57b6bdd93
|
Support Headings in tokenizer; handle tokens backwards in builder.
* Some other fixes, additions.
|
pirms 12 gadiem |
Ben Kurtovic
|
40b6480aa7
|
Split on all characters that we use.
|
pirms 12 gadiem |
Ben Kurtovic
|
664b6e39ec
|
_write(text=True) -> _write_text(); __eq__ for Tokens
|
pirms 12 gadiem |
Ben Kurtovic
|
278594a8cf
|
Faster parsing: split the text on sentinels instead of every letter.
|
pirms 12 gadiem |
Ben Kurtovic
|
aec66b0db7
|
Missed another call (2.0 seconds -> 1.5 seconds for 1,000,000 chars).
|
pirms 12 gadiem |
Ben Kurtovic
|
3fd13100da
|
Another speedup by reducing calls to _read().
|
pirms 12 gadiem |
Ben Kurtovic
|
889fd316d3
|
A rogue print statement appears!
|
pirms 12 gadiem |
Ben Kurtovic
|
31103b5891
|
_push_textbuffer() in _verify_template_name()
|
pirms 12 gadiem |
Ben Kurtovic
|
2f4ce003b4
|
Massive speedup and refactoring.
|
pirms 12 gadiem |
Ben Kurtovic
|
010bd34653
|
Support HTMLEntities.
|
pirms 12 gadiem |
Ben Kurtovic
|
02fe3b0833
|
Improve handling of templates in strange cases.
|
pirms 12 gadiem |
Ben Kurtovic
|
e79c79762f
|
Pre- and post-stop context verification, plus refactor parse_until().
|
pirms 12 gadiem |
Ben Kurtovic
|
8dd7b6aada
|
Handle nested contexts correctly; parameter values; bad parse routes.
|
pirms 12 gadiem |
Ben Kurtovic
|
6fefc28cba
|
Handle integers as MediaWiki does.
|
pirms 12 gadiem |
Ben Kurtovic
|
69b236ee8d
|
Handle template parameter key dependents more intelligently.
|
pirms 12 gadiem |
Ben Kurtovic
|
934b1ef016
|
Fixes and improvements.
|
pirms 12 gadiem |
Ben Kurtovic
|
d3ea962d27
|
Starting work on token contexts.
|
pirms 12 gadiem |
Ben Kurtovic
|
2209dfc78d
|
Better handling of template ends, refactor.
|
pirms 12 gadiem |
Ben Kurtovic
|
32d99c3c75
|
Tokenizer now supports a very, very limited template syntax.
|
pirms 12 gadiem |
Ben Kurtovic
|
17053e4701
|
Support &#Xhex; in addition to &#xhex;.
|
pirms 12 gadiem |
Ben Kurtovic
|
81e5ce30af
|
Working on the framework for the tokenizer, plus some cleanup, fixes.
|
pirms 12 gadiem |
Ben Kurtovic
|
4539859c55
|
Merge BuildStack into Builder.
|
pirms 12 gadiem |
Ben Kurtovic
|
137b9fc68f
|
Fix some bugs; satisfy PyLint on certain inheritance things.
|
pirms 12 gadiem |
Ben Kurtovic
|
8f0782f915
|
Fix some typos/bugs.
|
pirms 12 gadiem |
Ben Kurtovic
|
219b9086d2
|
Finish implementing Builder for all existing Nodes; BuildStack.
|
pirms 12 gadiem |
Ben Kurtovic
|
33acb3eea3
|
Starting main parser: Parser, Tokens, Tokenizer, Builder, BuildStack.
|
pirms 12 gadiem |
Ben Kurtovic
|
227ac924ee
|
Finish implementing all of SmartList.
|
pirms 12 gadiem |
Ben Kurtovic
|
cf299c523d
|
Implement the rest of _ListProxy.
|
pirms 12 gadiem |
Ben Kurtovic
|
3633f31633
|
Relaive imports because they are awesome; more stuff in SmartList.
|
pirms 12 gadiem |
Ben Kurtovic
|
b5fb7e18f2
|
Implement ListProxy.{count,index,extend,insert,reverse,sort}
|
pirms 12 gadiem |
Ben Kurtovic
|
13066ff189
|
Implement a ton more in SmartList.
|
pirms 12 gadiem |
Ben Kurtovic
|
713a3c9944
|
Implement SmartList.setslice, ListProxy.{repr,setitem,setslice}
|
pirms 12 gadiem |
Ben Kurtovic
|
33f8924cf9
|
Implement Wikicode.get_sections(), starting SmartList.
|
pirms 12 gadiem |
Ben Kurtovic
|
691b143618
|
Filter functions for Tags
|
pirms 12 gadiem |
Ben Kurtovic
|
9355f22d22
|
Implement interface for __showtree__.
Some cleanup and import fixes.
|
pirms 12 gadiem |
Ben Kurtovic
|
c3f53f2e84
|
Minor fixes.
|
pirms 12 gadiem |
Ben Kurtovic
|
c3ee6c919d
|
Implementing __iternodes__ protocol.
|
pirms 12 gadiem |