FWIW, my parsing method would return the “good” version in your PlayBuf example, not the “bad” version (which is not to say there won’t be cases that will be more difficult). My plan was for the DSL to have less syntactic sugar than sclang and be easier to parse.
Calling sclang from C strikes me as quite difficult, but maybe I’m missing something.