Commit Graph

57 Commits

Author SHA1 Message Date
Ian Gulliver
fe48937cfa Add Save() and SavedLiteral() matchers. Add badpenny grammar. 2014-08-03 10:46:34 -07:00
Ian Gulliver
e5daba4d86 Move static content into /static 2014-07-04 16:27:57 -04:00
Ian Gulliver
110a0418a7 Save memory used storing grammar by caching equivalent matchers. 2014-07-03 21:31:37 -04:00
Ian Gulliver
1db15bee52 Python: Pull group, extract and filter order fixes from JavaScript 2014-07-03 01:20:40 -04:00
Ian Gulliver
71a687cc25 JavaScript: change filter application strategy and grouping/extraction code to work around ordering issues. 2014-07-03 01:11:39 -04:00
Ian Gulliver
ae2828b2c2 Python: fix DOM bugs that were breaking grouping filter 2014-07-02 14:01:19 -07:00
Ian Gulliver
8a9f9acbaa Python: add > escaping 2014-07-02 13:42:17 -07:00
Ian Gulliver
2e75804e30 Start of a Python test 2014-07-02 13:40:29 -07:00
Ian Gulliver
8293063100 Bugfix in Insert() 2014-07-02 13:40:19 -07:00
Ian Gulliver
39457a0f8c Now with pyc files to ignore 2014-07-02 13:34:10 -07:00
Ian Gulliver
34f5512407 Python: escaping, fix in filter 2014-07-02 13:33:20 -07:00
Ian Gulliver
d6222c374c Working python parsing, some working stringification 2014-07-02 13:24:59 -07:00
Ian Gulliver
42f1547dd7 First parse through a file; still have bugs 2014-07-02 13:09:24 -07:00
Ian Gulliver
09a3b9c2ec Make rules and filters public 2014-07-02 13:09:06 -07:00
Ian Gulliver
980c877f56 Correct handling of link href 2014-07-02 10:00:33 -07:00
Ian Gulliver
d37ef27e8a List of pre-formatted line support. Real image conversion to figure support. 2014-07-02 09:57:45 -07:00
Ian Gulliver
fc5dc49e72 Avoid constantly calling toLowerCase() 2014-07-02 09:31:09 -07:00
Ian Gulliver
987defe93e Say "Element" instead of "Tag" 2014-07-02 09:26:16 -07:00
Ian Gulliver
ccc13f7a20 More filters needed to support mediawiki list parsing. 2014-07-01 23:16:39 -07:00
Ian Gulliver
e34bdfc96d Revert "Revert "Change filtering model again to allow more complex filters.""
This reverts commit 0f86637a6c.
2014-07-01 17:25:10 -07:00
Ian Gulliver
0f86637a6c Revert "Change filtering model again to allow more complex filters."
This reverts commit a49c9f6db8.
2014-07-01 17:24:28 -07:00
Ian Gulliver
a49c9f6db8 Change filtering model again to allow more complex filters. 2014-07-01 17:23:41 -07:00
Ian Gulliver
8b7b0670db Support multiple filters per node type. 2014-07-01 17:19:14 -07:00
Ian Gulliver
696e9642dd Make grammar look Python-esque 2014-06-30 23:18:58 -07:00
Ian Gulliver
dfb1e07f46 Create a Parser object that can package up rules and filters. 2014-06-30 23:14:20 -07:00
Ian Gulliver
241a27c9c1 Framework for applying filters, and one filter to start with. 2014-06-30 22:59:08 -07:00
Ian Gulliver
7d7345b9ec Hide comments. 2014-06-30 22:27:39 -07:00
Ian Gulliver
f326683aaa mediawiki image grammar. 2014-06-30 21:46:44 -07:00
Ian Gulliver
7affa466d4 Add link support to mediawiki grammer. Fix a bug in rr.Node() 2014-06-30 21:12:12 -07:00
Ian Gulliver
1586375bba Ian learns how to use exceptions in JavaScript. 2014-06-30 20:33:35 -07:00
Ian Gulliver
a3b4eafd73 Fix some grammar problems in mediawiki 2014-06-30 20:28:23 -07:00
Ian Gulliver
58ab9a57db Add rr.Insert() 2014-06-30 20:11:30 -07:00
Ian Gulliver
4c816eb8da Add test for pre-formatted list-type line. 2014-06-30 20:11:14 -07:00
Ian Gulliver
616f365587 Working test. 2014-06-29 23:14:17 -07:00
Ian Gulliver
72c0278b13 Style cleanups. 2014-06-29 23:02:12 -07:00
Ian Gulliver
d3a039fa12 Bugfix for StartOfLine() (actually Context.stringBefore()) 2014-06-29 23:01:48 -07:00
Ian Gulliver
e401d1e77b Big grammar expansion. 2014-06-29 22:23:06 -07:00
Ian Gulliver
3bc51e27a6 Formatting cleanup for grammar. 2014-06-29 18:27:46 -07:00
Ian Gulliver
14860b6323 Add a CharExcept building block. Switch MultiLineText and SingleLineText to be built on top of it. Also add OneOrMore, Char. 2014-06-29 18:20:28 -07:00
Ian Gulliver
08a6d90750 Satisfy linter. 2014-06-29 17:51:21 -07:00
Ian Gulliver
ef6f8800fd Big alphabetization. 2014-06-29 17:49:43 -07:00
Ian Gulliver
78cc56dc46 Make ZeroOrMore non-greedy to make it nestable without exponential behavior. 2014-06-29 17:39:24 -07:00
Ian Gulliver
2f03f4d9ff Delete a bunch of debugging getting me nowhere. 2014-06-28 22:23:54 -07:00
Ian Gulliver
6d06d14900 Fix rr.Or matcher inifite loop bug. 2014-06-28 17:30:21 -07:00
Ian Gulliver
24084ae523 Rewrite ZeroOrMore to produce all options instead of just the first. 2014-06-28 16:25:08 -07:00
Ian Gulliver
449a4f2418 s/Pair/SequentialPair/ 2014-06-28 12:05:52 -07:00
Ian Gulliver
1e13b75ad4 Add a Pair matcher. Turn Sequence into a Pair factory instead of a real matcher. 2014-06-28 00:05:46 -07:00
Ian Gulliver
049382a744 Everything annotated and passing verification. 2014-06-27 23:54:22 -07:00
Ian Gulliver
5fc694319e Passing test. 2014-06-27 23:07:33 -07:00
Ian Gulliver
3bee8b9acf Checkpoint: working parsing 2014-06-26 22:48:03 -07:00