snapdragon-scanner (npm): Easily scan a string with an object of regex patterns to produce an array of tokens. ~100 sloc.
Keywords: ast|compile|compiler|convert|node|parse|parser|render|scan|scanner|snapdragon|token|tokenize|tokenizer|transform|lex|lexer|string