CompilerTeaching / Pegmatite

A library for reusable parsers
http://compilerteaching.github.io/pegmatite/
BSD 2-Clause "Simplified" License
16 stars 9 forks source link

Add InputRange::str() method. #12

Closed trombonehero closed 9 years ago

trombonehero commented 9 years ago

This operation (construct a std::stringstream, feed characters into it, turn them into a std::string) seems to be pretty common, so implement it in one place instead of many.

davidchisnall commented 9 years ago

Merged.