Ben Kurtovic
|
353122105d
|
Fix tokenizer so we don't destroy our textbuf writing an empty stack
* Also fix a bug in Argument
|
12 vuotta sitten |
Ben Kurtovic
|
814ce9f290
|
Fix an assumption regarding templates mistaken as arguments.
|
12 vuotta sitten |
Ben Kurtovic
|
70cf46ef0d
|
Simplify / refactor.
|
12 vuotta sitten |
Ben Kurtovic
|
6b84a87c7d
|
Far more robust parsing of templates and template arguments.
|
12 vuotta sitten |
Ben Kurtovic
|
c01f78aee1
|
Implement arguments in tokenizer - preliminary results are promising.
|
12 vuotta sitten |
Ben Kurtovic
|
2e44343dbc
|
Implement __iternodes__, __strip__, and __showtree__ for Argument.
|
12 vuotta sitten |
Ben Kurtovic
|
b3bfe68cd8
|
Start Argument node type, implement argument in builder (#4).
|
12 vuotta sitten |
Ben Kurtovic
|
a735efd0bc
|
Template parameters containing newlines should be invalid (closes #6)
|
12 vuotta sitten |
Ben Kurtovic
|
38b664f8c5
|
Add missing setters for some nodes and extras (#8)
|
12 vuotta sitten |
Ben Kurtovic
|
777dd7a945
|
.Text -> .nodes.Text, since .Text can also be .tokens.Text.
|
12 vuotta sitten |
Ben Kurtovic
|
816207bb5a
|
Simplify docs massively.
|
12 vuotta sitten |
Ben Kurtovic
|
bdf5608425
|
More documentation for various things.
|
12 vuotta sitten |
Ben Kurtovic
|
1caeb2d570
|
Build the actual Sphinx documentation, plus a number of typo fixes.
|
12 vuotta sitten |
Ben Kurtovic
|
b2b49ebd80
|
More specific docs for contexts and tokenizer.
|
12 vuotta sitten |
Ben Kurtovic
|
e787c97712
|
Finish documenting all of the main things (#5).
|
12 vuotta sitten |
Ben Kurtovic
|
975be475d3
|
Document Builder and contexts.
|
12 vuotta sitten |
Ben Kurtovic
|
da3ad8ce9d
|
Document Parser.
|
12 vuotta sitten |
Ben Kurtovic
|
b0fbe5dc8e
|
Document Tag.
|
12 vuotta sitten |
Ben Kurtovic
|
b0418189d6
|
Document all of Template, plus some other fixes.
|
12 vuotta sitten |
Ben Kurtovic
|
0d224e1a63
|
Document mwparserfromhell.nodes, Node, Heading, and HTMLEntity.
|
12 vuotta sitten |
Ben Kurtovic
|
aeb214acb5
|
Document compat, nodes.extras, Attribute, Parameter
|
12 vuotta sitten |
Ben Kurtovic
|
d9805d409b
|
Document SmartList, StringMixIn, utils; some cleanup.
|
12 vuotta sitten |
Ben Kurtovic
|
c07869674f
|
Finish documenting Wikicode.
|
12 vuotta sitten |
Ben Kurtovic
|
1bc6aa7d3e
|
Document all other methods except the last three in Wikicode.
|
12 vuotta sitten |
Ben Kurtovic
|
ed6501344d
|
Docstrings for a good chunk of Wikicode.
|
12 vuotta sitten |
Ben Kurtovic
|
0487661c99
|
py3k support __setitem__ and __delitem__ of SmartList.
|
12 vuotta sitten |
Ben Kurtovic
|
f21f13374e
|
Fix py2 token support.
|
12 vuotta sitten |
Ben Kurtovic
|
391a5bd373
|
Compat for the parser itself.
|
12 vuotta sitten |
Ben Kurtovic
|
90b18e3abc
|
Finish updating all to compat except for the parser.
|
12 vuotta sitten |
Ben Kurtovic
|
d6a0d6b737
|
Update py3k compatibility in some modules.
|
12 vuotta sitten |
Ben Kurtovic
|
ea28e991d9
|
Merge pull request #3 from Riamse/develop
Forgot to add compat.py (#1)
|
12 vuotta sitten |
Riamse
|
c4fd7b7468
|
Remove test.py - unintentionally added
|
12 vuotta sitten |
Riamse
|
a24821057c
|
Forgot to add compat.py
|
12 vuotta sitten |
Ben Kurtovic
|
dea1612d77
|
Merge pull request #2 from Riamse/develop
Adding Python 3 support experimentally (#1)
|
12 vuotta sitten |
Riamse
|
aa4b45c1bb
|
Forgot the extras folder
|
12 vuotta sitten |
Ben Kurtovic
|
e6fa7b2b2d
|
Support changing a template's name, plus a couple of typos and docs.
|
12 vuotta sitten |
Riamse
|
2eb76e7de0
|
Adding Python 3 support
|
12 vuotta sitten |
Ben Kurtovic
|
0a052f34fb
|
Clarify Python 3 stuff.
|
12 vuotta sitten |
Ben Kurtovic
|
ce43b44596
|
Copyedit, fixes, clarify Python 2 + 3 support.
|
12 vuotta sitten |
Ben Kurtovic
|
59a25818b9
|
Updating documentation.
|
12 vuotta sitten |
Ben Kurtovic
|
222f3b7dc3
|
Merged feature/parser into develop; good enough for now.
|
12 vuotta sitten |
Ben Kurtovic
|
fc66ce0654
|
Update remove() for when a templates has the same key multiple times.
|
12 vuotta sitten |
Ben Kurtovic
|
e57b6bdd93
|
Support Headings in tokenizer; handle tokens backwards in builder.
* Some other fixes, additions.
|
12 vuotta sitten |
Ben Kurtovic
|
40b6480aa7
|
Split on all characters that we use.
|
12 vuotta sitten |
Ben Kurtovic
|
664b6e39ec
|
_write(text=True) -> _write_text(); __eq__ for Tokens
|
12 vuotta sitten |
Ben Kurtovic
|
278594a8cf
|
Faster parsing: split the text on sentinels instead of every letter.
|
12 vuotta sitten |
Ben Kurtovic
|
aec66b0db7
|
Missed another call (2.0 seconds -> 1.5 seconds for 1,000,000 chars).
|
12 vuotta sitten |
Ben Kurtovic
|
3fd13100da
|
Another speedup by reducing calls to _read().
|
12 vuotta sitten |
Ben Kurtovic
|
889fd316d3
|
A rogue print statement appears!
|
12 vuotta sitten |
Ben Kurtovic
|
31103b5891
|
_push_textbuffer() in _verify_template_name()
|
12 vuotta sitten |