Ben Kurtovic
|
59a25818b9
|
Updating documentation.
|
il y a 12 ans |
Ben Kurtovic
|
222f3b7dc3
|
Merged feature/parser into develop; good enough for now.
|
il y a 12 ans |
Ben Kurtovic
|
fc66ce0654
|
Update remove() for when a templates has the same key multiple times.
|
il y a 12 ans |
Ben Kurtovic
|
e57b6bdd93
|
Support Headings in tokenizer; handle tokens backwards in builder.
* Some other fixes, additions.
|
il y a 12 ans |
Ben Kurtovic
|
40b6480aa7
|
Split on all characters that we use.
|
il y a 12 ans |
Ben Kurtovic
|
664b6e39ec
|
_write(text=True) -> _write_text(); __eq__ for Tokens
|
il y a 12 ans |
Ben Kurtovic
|
278594a8cf
|
Faster parsing: split the text on sentinels instead of every letter.
|
il y a 12 ans |
Ben Kurtovic
|
aec66b0db7
|
Missed another call (2.0 seconds -> 1.5 seconds for 1,000,000 chars).
|
il y a 12 ans |
Ben Kurtovic
|
3fd13100da
|
Another speedup by reducing calls to _read().
|
il y a 12 ans |
Ben Kurtovic
|
889fd316d3
|
A rogue print statement appears!
|
il y a 12 ans |
Ben Kurtovic
|
31103b5891
|
_push_textbuffer() in _verify_template_name()
|
il y a 12 ans |
Ben Kurtovic
|
2f4ce003b4
|
Massive speedup and refactoring.
|
il y a 12 ans |
Ben Kurtovic
|
010bd34653
|
Support HTMLEntities.
|
il y a 12 ans |
Ben Kurtovic
|
02fe3b0833
|
Improve handling of templates in strange cases.
|
il y a 12 ans |
Ben Kurtovic
|
e79c79762f
|
Pre- and post-stop context verification, plus refactor parse_until().
|
il y a 12 ans |
Ben Kurtovic
|
8dd7b6aada
|
Handle nested contexts correctly; parameter values; bad parse routes.
|
il y a 12 ans |
Ben Kurtovic
|
6fefc28cba
|
Handle integers as MediaWiki does.
|
il y a 12 ans |
Ben Kurtovic
|
69b236ee8d
|
Handle template parameter key dependents more intelligently.
|
il y a 12 ans |
Ben Kurtovic
|
934b1ef016
|
Fixes and improvements.
|
il y a 12 ans |
Ben Kurtovic
|
d3ea962d27
|
Starting work on token contexts.
|
il y a 12 ans |
Ben Kurtovic
|
2209dfc78d
|
Better handling of template ends, refactor.
|
il y a 12 ans |
Ben Kurtovic
|
32d99c3c75
|
Tokenizer now supports a very, very limited template syntax.
|
il y a 12 ans |
Ben Kurtovic
|
17053e4701
|
Support &#Xhex; in addition to &#xhex;.
|
il y a 12 ans |
Ben Kurtovic
|
81e5ce30af
|
Working on the framework for the tokenizer, plus some cleanup, fixes.
|
il y a 12 ans |
Ben Kurtovic
|
4539859c55
|
Merge BuildStack into Builder.
|
il y a 12 ans |
Ben Kurtovic
|
137b9fc68f
|
Fix some bugs; satisfy PyLint on certain inheritance things.
|
il y a 12 ans |
Ben Kurtovic
|
8f0782f915
|
Fix some typos/bugs.
|
il y a 12 ans |
Ben Kurtovic
|
219b9086d2
|
Finish implementing Builder for all existing Nodes; BuildStack.
|
il y a 12 ans |
Ben Kurtovic
|
33acb3eea3
|
Starting main parser: Parser, Tokens, Tokenizer, Builder, BuildStack.
|
il y a 12 ans |
Ben Kurtovic
|
227ac924ee
|
Finish implementing all of SmartList.
|
il y a 12 ans |
Ben Kurtovic
|
cf299c523d
|
Implement the rest of _ListProxy.
|
il y a 12 ans |
Ben Kurtovic
|
3633f31633
|
Relaive imports because they are awesome; more stuff in SmartList.
|
il y a 12 ans |
Ben Kurtovic
|
b5fb7e18f2
|
Implement ListProxy.{count,index,extend,insert,reverse,sort}
|
il y a 12 ans |
Ben Kurtovic
|
13066ff189
|
Implement a ton more in SmartList.
|
il y a 12 ans |
Ben Kurtovic
|
713a3c9944
|
Implement SmartList.setslice, ListProxy.{repr,setitem,setslice}
|
il y a 12 ans |
Ben Kurtovic
|
33f8924cf9
|
Implement Wikicode.get_sections(), starting SmartList.
|
il y a 12 ans |
Ben Kurtovic
|
691b143618
|
Filter functions for Tags
|
il y a 12 ans |
Ben Kurtovic
|
9355f22d22
|
Implement interface for __showtree__.
Some cleanup and import fixes.
|
il y a 12 ans |
Ben Kurtovic
|
c3f53f2e84
|
Minor fixes.
|
il y a 12 ans |
Ben Kurtovic
|
c3ee6c919d
|
Implementing __iternodes__ protocol.
|
il y a 12 ans |
Ben Kurtovic
|
69cfbd975f
|
Fix args.
|
il y a 12 ans |
Ben Kurtovic
|
253c812fb3
|
Implement __strip__ API for Wikicode.
|
il y a 12 ans |
Ben Kurtovic
|
f47f179dfd
|
Add a bunch of tags, plus a translator for tag -> wikicode.
|
il y a 12 ans |
Ben Kurtovic
|
fca7e9dd80
|
Implement Heading, HTMLTag, HTMLTagAttribute, plus some fixes.
|
il y a 12 ans |
Ben Kurtovic
|
034ac99ebe
|
Clarify flags.
|
il y a 12 ans |
Ben Kurtovic
|
94d5fc0734
|
Determine spacing conventions when adding a parameter.
|
il y a 12 ans |
Ben Kurtovic
|
064b258141
|
Inherit StringMixIn method documentation from unicode.
Also reorder imports in nodes.__init__ to fix a minor bug.
|
il y a 12 ans |
Ben Kurtovic
|
4b5b8d305f
|
Implement all methods of unicode.
|
il y a 12 ans |
Ben Kurtovic
|
16a58a8c3b
|
Implement _blank_param_value().
|
il y a 12 ans |
Ben Kurtovic
|
dde883725b
|
Solve a potential numbering issue when removing a parameter.
|
il y a 12 ans |