Fixed left recursion in grammar.
Added first test.