Commit Graph

33 Commits

Author SHA1 Message Date
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
Ian Gulliver
8d445df2c4 Checkin before I destroy everything. 2014-06-26 19:41:23 -07:00
Ian Gulliver
18476a1468 Don't require us to finish the whole string with our last item. 2014-05-20 17:23:32 -07:00
Ian Gulliver
835979f95e Start of parsing of mediawiki text. 2014-05-20 16:40:35 -07:00
Ian Gulliver
bbabf59505 Start of an actual parser. 2014-05-20 12:49:30 -07:00
Ian Gulliver
2bf3c67aa7 Start of API & tests. 2014-05-20 11:46:57 -07:00
Ian Gulliver
a6b6fdf2ea Fix grammar top-level object list. 2014-05-20 10:57:38 -07:00
Ian Gulliver
154fb25ee8 Starting idea of what a grammar should look like. 2014-05-20 10:56:20 -07:00