Skip to content

Realtime grep for OCaml sources available on opam

License

Notifications You must be signed in to change notification settings

patricoferris/sherlocode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Try it online at sherlocode.com !

This is a straightforward implementation of Regular Expression Matching with a Trigram Index by Russ Cox. For each of the characters, bigrams and trigrams, we store the set of line numbers where they appear. To answer a query, we first approximate the regex by enumerating the ngrams that are required/optional: the intersection/union of their indexed set yields good line candidates against which we can match the query.

About

Realtime grep for OCaml sources available on opam

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 77.1%
  • Standard ML 12.2%
  • CSS 10.2%
  • Shell 0.5%