Version 0.5: fixed handling of syntax errors