Working version of slate syntax parsing