Switched to a lexer based parser

Signed-off-by: K-ballo <k@fusionfenix.com>