正則表達式引擎 ReJit

jopen 8年前發布 | 6K 次閱讀

ReJit

ReJit is an open-source, JIT-powered regex engine that currently supports most regular expression features (and even some that RE2 doesn't support, like backreferences). The only supported architectures at the moment are X86 and X64.

Note that ReJit is NOT complete! See the issue tracker for a list of open issues.

Also, ReJit does not work on Windows at the moment (or at least X64; X86 might work). Ideally, it would be a simple fix to use the shadow stack instead of the red zone and changing the call registers...but I'm not sure.

Requirements

  • Fbuild (use the Git version, not the release).
  • Python 3.
  • Lua.
  • Libcut if you want to build the tests.

Building

Just run:

$ fbuild

Usage

Right now, there aren't any docs, but you can check out the demo script and the test suite for a bunch of examples.


項目地址: https://github.com/kirbyfan64/rejit

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!