Implementing basic token match and storage

The tokens are being matched by their regexps. The results are stored by
match start index in an array the same length as the original code
string.