Proper parsing of Pascal subset