Corrections to make the parser compile

Signed-off-by: Nathan Prat <nathan.prat@gmail.com>