Skip to content

ErikCorryGoogle/aotre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aotre

A hacky regexp compiler that generates machine code for regexp matching, originally written for a talk at the Yow! conference in Sydney 2016. Requires Dart language and Clang 3.5. Try out with:

make all
./aotre /usr/share/dict/words

This is not an officially supported Google product.

Features:

  • Regexp style is backtracking.
  • Supports .()^$ and literals. Greedy and non-greedy ?*+{}, [] char classes.
  • Supports look-aheads and look-behinds (variable length).
  • Supports \b (word boundary).
  • Supports back-references like \1.

Known issues:

  • Can't match a null character, and expects a null terminated string.
  • No Unicode support.
  • No case independence.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published