Skip to content

afader/thompson-regex-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thompson-regex-js

This code implements a regular expression library, including:

  • A parser that maps regular expressions to an abstract syntax tree
  • A compiler that evaluates the abstract syntax tree to an automaton
  • A simulator that runs the automaton against input strings

This is largely a reimplementation of Russ Cox's work in javascript.

About

Thompson's NFA construction algorithm in javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published