Moved the input stream, together with line/column info, into its own class, which allowed some other stuff just to pass the stream, and not have to be a member of Scanner.

This commit is contained in:
Jesse Beder
2008-06-29 06:32:13 +00:00
parent 0d5a97bffe
commit ff99f85a6d
13 changed files with 162 additions and 142 deletions

3
exp.h
View File

@@ -3,6 +3,7 @@
#include "regex.h"
#include <string>
#include <ios>
#include "stream.h"
namespace YAML
{
@@ -50,7 +51,7 @@ namespace YAML
const RegEx Chomp = (ChompIndicator + Digit) || (Digit + ChompIndicator) || ChompIndicator || Digit;
// and some functions
std::string Escape(std::istream& in, int& length);
std::string Escape(Stream& in);
}
namespace Keys