Minimal parser implementation (/!\ not tested)