Commit Graph

6 Commits

Author SHA1 Message Date
945426e245 Add code to de-register patterns. 2018-02-05 22:42:02 -08:00
3b72569b33 Store information about tokens when they are added. 2018-02-05 22:09:12 -08:00
600f169b5b Use const variables in eval as much as possible. 2017-07-20 22:09:42 -07:00
1399934a24 Switch indices in strings to size_t. 2017-07-20 21:46:39 -07:00
140b727cc7 Make foreach_free public and fix a few bugs. 2017-02-14 19:10:44 -08:00
0b6d73ebdf Write initial code for matching the patterns to a single string.
The code is limited in two aspects, at the moment:
* It's not very well tested
* The current "best" match is just the one that occurred last. While
this is just fine in terms of length, this leaves open to chance which
pattern type will be returned if multiple patterns of the same length
match.
2017-02-04 00:28:36 -08:00