lbradstreet / instaparse-cljs

Port of Instaparse to Clojurescript
89 stars 4 forks source link

Small formatting bug in "__ rule occurs on right-hand side..." error #3

Closed aengelberg closed 9 years ago

aengelberg commented 9 years ago

In this line, the string to be appended should start with a space. Currently I'm getting errors like:

my-ruleoccurs on the right-hand side of your grammar, but not on the left

(Note the lack of space between my-rule and occurs)

In the clj code, the error would be constructed with a call to format, and the space is included, but it must have been lost during the conversion to using str in cljs.

Thanks for your awesome work on the Clojurescript port! --Alex

lbradstreet commented 9 years ago

Thanks for the report! I'll get a release out ASAP. Clojurescript doesn't have a format function so I obviously made a bit of a mistake there.

lbradstreet commented 9 years ago

Fixed in master