Commit graph

119 commits

Author SHA1 Message Date
Aleksey Kladov 2e3f5af9d4 move mbe to the new API 2019-05-28 17:39:01 +03:00
Aleksey Kladov 1cece9f219 return errors from tree builder 2019-05-28 16:26:14 +03:00
Edwin Cheng 464a00814c Use cfg(test) instead of allow(unused) 2019-05-28 10:55:08 +08:00
Edwin Cheng a3b9aecc9b Minor use module 2019-05-28 00:54:32 +08:00
Edwin Cheng 98aac6b751 Simpliy how collecting token from src 2019-05-28 00:38:55 +08:00
Edwin Cheng d833ded3b4 Remove Queier and SubtreeWalk 2019-05-27 23:20:43 +08:00
Edwin Cheng 90764fc54b Remove duplicated code 2019-05-26 02:41:00 +08:00
Edwin Cheng 816147c4b5 Simplify token_tree_to_xxx 2019-05-25 21:55:46 +08:00
Edwin Cheng fcb1eef323 Change TokenSource to iteration based 2019-05-25 20:41:03 +08:00
Edwin Cheng 27ae626cfb Formatting 2019-05-23 09:31:36 +08:00
Edwin Cheng dd50ca7c5e Refactor SubtreeSource 2019-05-23 02:23:56 +08:00
Edwin Cheng ad9d2012de Fix match literal 2019-05-20 18:29:02 +08:00
Sergey Parilin 993abedd77 apply T! macro where it is possible 2019-05-15 15:35:47 +03:00
Edwin Cheng 10ecb11ff5 Error out non single root token tree conversion 2019-05-14 07:59:28 +08:00
Edwin Cheng a48e33f139 Fixed missing empty vars 2019-05-05 10:32:57 +08:00
Edwin Cheng 1a3800df60 Fix $true and $false as $var name error 2019-05-05 00:49:50 +08:00
Edwin Cheng 50f288db92 Add test 2019-05-04 22:32:48 +08:00
Edwin Cheng 0c4efbb2b6 Error out when parse_subtree is not a subtree 2019-05-04 21:57:20 +08:00
Edwin Cheng 036141663b Quote the quoted comment 2019-05-04 19:34:02 +08:00
Edwin Cheng 048f12d9f0 Use explict escape_default instead of dbg print 2019-05-04 17:03:22 +08:00
Edwin Cheng e7e896170a Convert doc comment to attr 2019-05-04 15:00:16 +08:00
Edwin Cheng 4ba4747578 Mark unused mbe variable as Binding::Empty 2019-05-04 01:14:25 +08:00
Edwin Cheng 31909cc7d7 By pass unbind $var while mbe expanding 2019-05-03 23:23:21 +08:00
Edwin Cheng e8e46100d6 Refactor out tests module and remove empty subtree 2019-05-03 21:38:00 +08:00
Edwin Cheng 11d6a1449d Fixed old incorrect test 2019-05-03 00:20:27 +08:00
Edwin Cheng ab91050d49 Fix typo 2019-05-03 00:01:48 +08:00
Edwin Cheng 91745c62f8 Compare text instead 2019-05-02 23:59:13 +08:00
Edwin Cheng 1446d620c5 Add empty bindings and some refactoring 2019-05-02 23:23:14 +08:00
Edwin Cheng 35c4633150 Make vis matcher optional and fix typo 2019-05-02 21:24:51 +08:00
Edwin Cheng 779676f782 Remove unused code in subtree_source 2019-05-02 10:19:12 +08:00
Edwin Cheng a7ef9bac4e Formating 2019-05-02 10:08:11 +08:00
Edwin Cheng 6b2985ebc7 Remove unused code and add space bewteen tt 2019-05-02 10:02:17 +08:00
Edwin Cheng d436ab0581 Refactor parser handle mult-char punct internally 2019-04-28 23:46:03 +08:00
Edwin Cheng 1908819bf6 Use panic instead of unwrap 2019-04-26 02:56:44 +08:00
Edwin Cheng c55a2dbc1d Fix more bugs 2019-04-26 02:03:56 +08:00
Edwin Cheng 299d97b6d9 Add handling token seperator in mbe 2019-04-26 02:03:55 +08:00
Edwin Cheng e4e2338f97 Fix incorrect repeat sep eating 2019-04-26 02:03:55 +08:00
Edwin Cheng fccd045229 Add cached for SubtreeSource 2019-04-22 22:46:39 +08:00
Edwin Cheng bb84fce1a4 Remove unused print out 2019-04-22 20:21:14 +08:00
Edwin Cheng 1cdfc38066 Add a test for #1178 case 2019-04-22 20:14:46 +08:00
Edwin Cheng b177813f3b Add mbe expand limit and poision macro set 2019-04-22 15:33:55 +08:00
Edwin Cheng 120bfde3c2 Add tests 2019-04-22 05:04:37 +08:00
Edwin Cheng 3d1cdc834d Fix offset bug in SourceWalker 2019-04-22 05:04:37 +08:00
Edwin Cheng 49c9686c3c Handle *+ case and single token case 2019-04-22 05:04:37 +08:00
Edwin Cheng bcf5cf8ac6 fix mbe_parser rhs colon parsing 2019-04-22 05:04:37 +08:00
Edwin Cheng da05bbcfb1 Fix lifetime in tt to syntax node conversion 2019-04-22 05:04:36 +08:00
Edwin Cheng 9e35bf91b8 Fix bugs 2019-04-20 23:53:39 +08:00
Edwin Cheng 210c762fe6 Disable test_tt_xx 2019-04-20 02:41:13 +08:00
Edwin Cheng 41c1a639c3 Disable tt matcher 2019-04-20 02:19:46 +08:00
Edwin Cheng 1afde29adb Add back missing assert 2019-04-19 21:52:54 +08:00