Modified parsing approach in compiler logic following
https://theantlrguy.atlassian.net/wiki/pages/viewpage.action?pageId=1900591
to gain performance improvements.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>