Commit Graph

90 Commits

Author SHA1 Message Date
55e57050c4 Slight tweak 2021-05-22 13:28:33 -07:00
c87a3add5b Fix for keyword check 2021-05-22 13:25:14 -07:00
ec1a3e0835 Fixes for char sets/ranges and cleanups 2021-05-20 16:46:14 -07:00
655ed12128 Mostly working version 2021-05-20 15:27:24 -07:00
d9f0a92839 Added (!) syntax for errors with proper opcode support 2021-05-20 00:33:11 -07:00
355e06a58e Added ~ and !~ operators as replacements for == and != 2021-05-19 23:41:57 -07:00
5d5817c2a3 Fancier string escape sequences and a bit of cleanup. 2021-05-19 21:58:54 -07:00
1a1b3ecfee Renamed boundary->edge 2021-05-11 19:06:41 -07:00
a93220972f Overhaul of |-word boundaries (| is deprecated), performance
improvements for repeating matches, tweaks to the logic of word vs. id
2021-05-11 12:38:58 -07:00
3359a804c8 Converted ^/^^/$/$$ into pattern types instead of builtin definitions 2021-05-11 11:39:42 -07:00
17dbe5d9e8 Added {word} feature and cleaned up the code some. 2021-05-10 23:46:46 -07:00
d9cca805a0 Added web grammar 2021-01-26 17:21:57 -08:00
b50ad0cad0 Fixed grammar syntax for ..% 2021-01-20 15:46:21 -08:00
b4c8a33a0c Tweaked .. syntax to make it more flexible (now: .. % skip pat) 2021-01-20 15:23:57 -08:00
8df395e701 Fixed some grammar bugs 2021-01-18 14:52:33 -08:00
71471476be Performance optimizations for id and | rules 2021-01-18 12:39:44 -08:00
1b9e2957c0 Cleanup of builtins 2021-01-17 22:35:13 -08:00
395bdd664f Added Lisp 2021-01-17 22:13:32 -08:00
d2600c8832 Improved rules for word boundary matching and ids (more utf8-compliant,
more flexible)
2021-01-17 22:07:08 -08:00
58c4fe378d Bugfix for typo 2021-01-17 21:59:23 -08:00
ec9835df36 Added some aliases 2021-01-17 21:42:06 -08:00
25346aa214 Updated the behavior of !=/== to only consider exact, full-text matches
instead of prefix matches
2021-01-17 21:39:56 -08:00
33665fe993 Added Javscript and simplified python imports 2021-01-17 20:30:59 -08:00
9736ace9a7 Added C++ grammar and aliases. 2021-01-17 20:19:49 -08:00
54b5dfba4d Added shell grammar 2021-01-17 20:13:34 -08:00
008db80229 Adding and improving grammars. 2021-01-17 20:05:19 -08:00
fdc91544b7 Improved HTML grammar 2021-01-17 19:44:44 -08:00
51313c4773 Adding more language grammars 2021-01-17 19:42:11 -08:00
23f9b7ade9 Added "not a keyword" to definition of id (keyword is undefined by
default, but overridden by grammars)
2021-01-17 19:29:42 -08:00
1d86625f92 Zazzing up repetitions with fancy ∞ symbol 2021-01-17 13:38:08 -08:00
a7e3e421db Deprecated #(...)# block comments 2021-01-16 10:39:09 -08:00
8ff80b09cc Major overhaul of how different modes of behavior work. Approximately 2x
speedup and 2x memory footprint reduction. Also removed --mode and
VM_HIDE (~ operator), and added --context. Printing works better now.
2021-01-15 01:19:10 -08:00
9238ffea88 Added rule for hiding 2021-01-14 16:16:41 -08:00
7e4b287d9b Fixed and updated grammar 2021-01-13 01:33:24 -08:00
88779eb240 Removed unnecessary start of file check 2021-01-12 18:34:45 -08:00
fc5ee8fcfc Fixed bug with ..%\n 2021-01-08 00:46:47 -08:00
d8d2a5a66e Changed precedence of => 2021-01-05 19:31:50 -08:00
00226cb763 Added whole-line-matching mode 2021-01-05 14:21:37 -08:00
4350d996d1 Simplified ... to ..%\n and $. to ./\n 2021-01-05 00:09:30 -08:00
ff2ef95041 Fully purging "bpeg" from the source 2020-12-30 19:42:47 -08:00
a07da1989d Simplified syntax for replacement: just =>, no need for {} 2020-12-30 15:30:19 -08:00
177bc55cfc Updated to use `a,b,c 2020-12-19 19:04:21 -08:00
e4066302b9 Strings not multiline by default 2020-12-14 21:38:49 -08:00
a8b844cfb6 Multiline paren groups 2020-12-14 21:35:43 -08:00
3753bc1be0 Updated '|' to mean word boundary and \N for nodent 2020-12-14 21:28:00 -08:00
8b50fc5d1d Fixed parens typo 2020-12-14 21:27:47 -08:00
01522b619f Fix for html 2020-12-14 18:45:49 -08:00
9617baf699 Updated grammars 2020-12-14 18:39:56 -08:00
eb329bdac9 Bunch of changes, including some bpeg->bp renaming, and adding
visualizations
2020-12-12 16:31:53 -08:00
6e1fd92814 Tweaks to nodent behavior 2020-10-13 17:12:37 -07:00