Jeff Avallone
7ca4b95cd7
Adding documentation to charset.js
2015-04-21 20:24:49 -04:00
Jeff Avallone
c22656a75d
Adding documentation to charset_escape.js
2015-04-21 20:24:46 -04:00
Jeff Avallone
01abba224a
Adding documentation to any_character.js
2015-04-21 20:24:41 -04:00
Jeff Avallone
2777da518e
Replacing an array join with a JS template
2015-04-19 16:45:06 -04:00
Jeff Avallone
1ef8bd7500
Adding documentation and a few tweaks to node.js
2015-04-19 16:40:53 -04:00
Jeff Avallone
8796c1329c
Reorganizing and cleanup of base Node code
2015-04-19 12:06:22 -04:00
Jeff Avallone
b2e7bade04
Adding more documentation
2015-04-16 17:52:50 -04:00
Jeff Avallone
5917d2b035
Updating getBBox and anchor code to improve performance
...
This change will reduce the number of calls to this.container.getBBox
when calculating the bounding box of a node
2015-04-16 17:13:12 -04:00
Jeff Avallone
5601c6a398
Removing some long dead code
2015-04-16 17:13:00 -04:00
Jeff Avallone
06e66c0f24
Creating helper methods for the setTimeout uses
...
Abstracting out some of the setTimeout patterns that have popped up in
the code to make the intention clearer.
2015-03-14 17:27:59 -04:00
Jeff Avallone
0093db8e20
Replacing Q promises with ES6 promises
2015-03-14 17:11:14 -04:00
Jeff Avallone
3970224302
Removing use of notify to update progress bar
2015-03-14 14:01:25 -04:00
Jeff Avallone
7328825204
Changing when subexpression numbers are generated
...
Generating subexp numbers during setup was leading to nested expressions
being numbered in reverse order.
Fixes #7
2015-03-13 20:23:04 -04:00
Jeff Avallone
1170a1be76
Displaying the hex code of escaped characters
...
This is only done where appropriate (escapes like "word boundary" don't
have a hex value, and displaying it for hex or unicode escapes would be
a little redundant).
2015-01-25 17:44:07 -05:00
Jeff Avallone
cb359bf4dd
Adding support for rendering empty subexpressions
...
Fixes #1
2014-12-30 17:06:29 -05:00
Jeff Avallone
e890fe7d2c
Updating progress using the promise notify feature
2014-12-29 17:35:18 -05:00
Jeff Avallone
aa6c792867
Adding tests for Match nodes
2014-12-26 12:48:02 -05:00
Jeff Avallone
cf159c28a5
Finishing tests for MatchFragment nodes
2014-12-26 10:57:46 -05:00
Jeff Avallone
000809752e
Removing some unnecessary extend calls
2014-12-23 23:27:09 -05:00
Jeff Avallone
6793b342ae
Using fancy quotes for literals
2014-12-23 23:07:51 -05:00
Jeff Avallone
d909312b94
Starting tests for MatchFragment nodes
2014-12-23 22:23:03 -05:00
Jeff Avallone
e11058688f
Some cleanup of Match and MatchFragment in prep for tests
2014-12-23 11:17:28 -05:00
Jeff Avallone
f264eee5f9
Adding tests for Regexp nodes
2014-12-23 11:02:15 -05:00
Jeff Avallone
e3eedb17af
Adding tests for Root nodes
2014-12-22 20:35:49 -05:00
Jeff Avallone
f842b424cc
Adding warnings for non-standard escape sequence usage
2014-12-22 16:57:30 -05:00
Jeff Avallone
a4f831bc60
Cleaning up some messy code in the grammar
2014-12-22 16:28:46 -05:00
Jeff Avallone
9e6f066763
Reducing duplication in grammar
2014-12-22 16:26:08 -05:00
Jeff Avallone
b35dece228
Fixing character set ranges
...
Certain escape sequences are not considered in ranges, and lead to the
hyphen to be part of the matched set of characters
2014-12-22 16:09:27 -05:00
Jeff Avallone
d882ee8e08
Adding check that charset range is in correct order
2014-12-22 15:18:49 -05:00
Jeff Avallone
9b8eef9c02
Setting ordinals for literals
2014-12-22 15:11:37 -05:00
Jeff Avallone
d4b648fa43
Setting ordinal for control code escapes
2014-12-22 15:11:20 -05:00
Jeff Avallone
580af045d6
Adjusting grammar to match \c escape "correctly"
...
\c followed by something other than a-z leads to inconsistent behavior
across browsers. Most will treat it as a series of literals (/\c#/ will
match the string "\\c#" for example)
2014-12-22 15:00:38 -05:00
Jeff Avallone
101b457260
Adding ordinal values to escapes
...
Work still needs to be done to get control characters correct, and
ordinals will need to be added for literals as well. This is in
preparation for reporting incorrectly ordered charset ranges
2014-12-22 12:44:19 -05:00
Jeff Avallone
33bbd11af6
Simplifying how parts of a charset are checked for uniqueness
2014-12-22 11:31:20 -05:00
Jeff Avallone
961d4812e9
Adding tests for Charset nodes
2014-12-22 10:57:16 -05:00
Jeff Avallone
e0825b7850
Fixing bug in charset code
2014-12-21 18:02:28 -05:00
Jeff Avallone
9bf5328da7
Adding specs for Subexp nodes
2014-12-21 12:05:55 -05:00
Jeff Avallone
82ca4f40f7
Adding initial tests for Repeat nodes
2014-12-20 13:03:57 -05:00
Jeff Avallone
55657a792b
Adding check for out of order numbers
2014-12-20 10:53:01 -05:00
Jeff Avallone
6c5b36f334
Changing util.js to export an object
...
This allows the methods to be spied on in tests
2014-12-20 10:25:32 -05:00
Jeff Avallone
8a9a129856
Adding tests for CharsetRange nodes
2014-12-20 10:18:00 -05:00
Jeff Avallone
d27831a265
Adding tests for CharsetEscape nodes
2014-12-19 21:56:56 -05:00
Jeff Avallone
24e21834f6
Adding tests for Escape nodes
2014-12-19 21:49:11 -05:00
Jeff Avallone
32a28ede90
Adding tests for Literal nodes
2014-12-19 21:35:03 -05:00
Jeff Avallone
69ae3f0fe1
Moving parser setup code into a separate file
2014-12-19 20:41:02 -05:00
Jeff Avallone
43eaf493e6
Removing some cruft in the grammar
2014-12-19 20:35:20 -05:00
Jeff Avallone
70789258ab
Removing CharsetLiteral
...
It was no different from just Literal (and most likely won't be any
different)
2014-12-19 20:23:32 -05:00
Jeff Avallone
2d4694f447
Simplifying some modules
2014-12-19 20:18:19 -05:00
Jeff Avallone
a50ba68a21
Moving spaceHorizontally and spaceVertically to util.js
2014-12-19 12:11:44 -05:00
Jeff Avallone
870b2e6ed4
Moving normalizeBBox to util.js
2014-12-19 12:06:21 -05:00