goffrie / plex

a parser and lexer generator as a Rust procedural macro
Apache License 2.0
409 stars 26 forks source link

Supply a trivial range function if span_ty = () #11

Closed kivikakk closed 8 years ago

kivikakk commented 8 years ago

Makes hacking around easier.

Thank you so much for the diagnostics in 15dd2f3c4ce936c859bac13bfe9479ad2f3439f1! It makes working with plex way smoother.

I don't much like using DUMMY_SP here, but I don't think just throwing in the current parser.span (at the end of the opening fn …; declaration) makes much sense either.

goffrie commented 8 years ago

I agree that DUMMY_SP is yuck in general, but it's already being used for basically everything :p Thanks for this!