slurmulon / bach

:musical_score: Semantic music notation
http://codebach.tech
MIT License
8 stars 0 forks source link

Improve error reporting #11

Open slurmulon opened 6 years ago

slurmulon commented 6 years ago

Right now bach.track/compile-track will return a default empty track if there are any syntax errors that occur in bach.ast/parse.

This might be okay in the long run (that way interpreters don't have to constantly ask "Is this valid bach.json or is it an error?"), but we should also be providing any errors that occur in the track.