Fixed booleans in lexer and rearranged precendencies in parser