Turns out this is a parser.
Considering making this the actual lexer.
Parse through digitial logic here.