Added result to afterParse and added rule finalNewline.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>