Ben Kurtovic
|
3fb8f3214c
|
Fix StringMixIn.maketrans() on Py3k.
- Make a test in Py3k actually use StringMixIn instead of str.
- Minor cosmetic fix.
|
11 vuotta sitten |
Ben Kurtovic
|
81849013bc
|
Finishing tests for Templates; some fixes.
|
11 vuotta sitten |
Ben Kurtovic
|
2ca3b2805e
|
Implement 'before' parameter for Template.add() (closes #21)
|
11 vuotta sitten |
Ben Kurtovic
|
b46c98b012
|
Clean up template.add(); add a before param but do not implement yet.
|
11 vuotta sitten |
Ben Kurtovic
|
786d619274
|
Drop force_no_field in template.remove(); implement test_remove().
- Also add tests for spacing in param names.
|
11 vuotta sitten |
Ben Kurtovic
|
6a385b3921
|
TestParameter and a fair chunk of TestTemplate.
|
11 vuotta sitten |
Ben Kurtovic
|
6bf8cfd2ad
|
Fix tests for Python 3.
|
11 vuotta sitten |
Ben Kurtovic
|
8db40689ed
|
Improve a few things about nodes; simply a method in Wikicode.
|
11 vuotta sitten |
Ben Kurtovic
|
404b4479a2
|
Implement the remaining asserts in TreeEqualityTestCase.
|
11 vuotta sitten |
Ben Kurtovic
|
34b85a93cd
|
Cosmetic change: standardize whitespace after class definition.
|
11 vuotta sitten |
Ben Kurtovic
|
357e421fe8
|
Text nodes should now appear a bit better in tree form.
|
11 vuotta sitten |
Ben Kurtovic
|
cd5cc6a7d0
|
Update copyright notices for 2013.
|
11 vuotta sitten |
Ben Kurtovic
|
76b299e4fa
|
Sync from upstream (6413ae21da ); some doc updates.
|
11 vuotta sitten |
Ben Kurtovic
|
6413ae21da
|
Should have used the param's name here instead of its value.
|
11 vuotta sitten |
Ben Kurtovic
|
3dbf0bc9bb
|
Fix heading/link code stripping; add WIKILINK contexts to documentation.
|
11 vuotta sitten |
Ben Kurtovic
|
5f7566c09e
|
Bugfix.
|
11 vuotta sitten |
Ben Kurtovic
|
aa29a8bd28
|
Wikilinks in builder; some additions; cleanup.
|
11 vuotta sitten |
Ben Kurtovic
|
21d33e1802
|
Adding Wikilink class.
|
11 vuotta sitten |
Ben Kurtovic
|
bd132ad249
|
Bugfix.
|
11 vuotta sitten |
Ben Kurtovic
|
65862befdc
|
Support comments in tokenizer.
|
11 vuotta sitten |
Ben Kurtovic
|
2cfb097342
|
Comment class for <!-- comments -->; implement in builder.
|
11 vuotta sitten |
Ben Kurtovic
|
353122105d
|
Fix tokenizer so we don't destroy our textbuf writing an empty stack
* Also fix a bug in Argument
|
11 vuotta sitten |
Ben Kurtovic
|
6b84a87c7d
|
Far more robust parsing of templates and template arguments.
|
11 vuotta sitten |
Ben Kurtovic
|
c01f78aee1
|
Implement arguments in tokenizer - preliminary results are promising.
|
11 vuotta sitten |
Ben Kurtovic
|
2e44343dbc
|
Implement __iternodes__, __strip__, and __showtree__ for Argument.
|
11 vuotta sitten |
Ben Kurtovic
|
b3bfe68cd8
|
Start Argument node type, implement argument in builder (#4).
|
11 vuotta sitten |
Ben Kurtovic
|
38b664f8c5
|
Add missing setters for some nodes and extras (#8)
|
11 vuotta sitten |
Ben Kurtovic
|
816207bb5a
|
Simplify docs massively.
|
11 vuotta sitten |
Ben Kurtovic
|
1caeb2d570
|
Build the actual Sphinx documentation, plus a number of typo fixes.
|
11 vuotta sitten |
Ben Kurtovic
|
b0fbe5dc8e
|
Document Tag.
|
11 vuotta sitten |
Ben Kurtovic
|
b0418189d6
|
Document all of Template, plus some other fixes.
|
11 vuotta sitten |
Ben Kurtovic
|
0d224e1a63
|
Document mwparserfromhell.nodes, Node, Heading, and HTMLEntity.
|
11 vuotta sitten |
Ben Kurtovic
|
aeb214acb5
|
Document compat, nodes.extras, Attribute, Parameter
|
11 vuotta sitten |
Ben Kurtovic
|
90b18e3abc
|
Finish updating all to compat except for the parser.
|
11 vuotta sitten |
Riamse
|
aa4b45c1bb
|
Forgot the extras folder
|
11 vuotta sitten |
Ben Kurtovic
|
e6fa7b2b2d
|
Support changing a template's name, plus a couple of typos and docs.
|
11 vuotta sitten |
Riamse
|
2eb76e7de0
|
Adding Python 3 support
|
11 vuotta sitten |
Ben Kurtovic
|
59a25818b9
|
Updating documentation.
|
11 vuotta sitten |
Ben Kurtovic
|
fc66ce0654
|
Update remove() for when a templates has the same key multiple times.
|
11 vuotta sitten |
Ben Kurtovic
|
e57b6bdd93
|
Support Headings in tokenizer; handle tokens backwards in builder.
* Some other fixes, additions.
|
11 vuotta sitten |
Ben Kurtovic
|
6fefc28cba
|
Handle integers as MediaWiki does.
|
11 vuotta sitten |
Ben Kurtovic
|
69b236ee8d
|
Handle template parameter key dependents more intelligently.
|
11 vuotta sitten |
Ben Kurtovic
|
934b1ef016
|
Fixes and improvements.
|
11 vuotta sitten |
Ben Kurtovic
|
17053e4701
|
Support &#Xhex; in addition to &#xhex;.
|
11 vuotta sitten |
Ben Kurtovic
|
81e5ce30af
|
Working on the framework for the tokenizer, plus some cleanup, fixes.
|
11 vuotta sitten |
Ben Kurtovic
|
137b9fc68f
|
Fix some bugs; satisfy PyLint on certain inheritance things.
|
11 vuotta sitten |
Ben Kurtovic
|
219b9086d2
|
Finish implementing Builder for all existing Nodes; BuildStack.
|
11 vuotta sitten |
Ben Kurtovic
|
33acb3eea3
|
Starting main parser: Parser, Tokens, Tokenizer, Builder, BuildStack.
|
11 vuotta sitten |
Ben Kurtovic
|
3633f31633
|
Relaive imports because they are awesome; more stuff in SmartList.
|
11 vuotta sitten |
Ben Kurtovic
|
9355f22d22
|
Implement interface for __showtree__.
Some cleanup and import fixes.
|
12 vuotta sitten |