mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Added quoted scalars (with escaping).
Refactored some common whitespace-parsing code in scanning both scalars. Implemented the flow collection tokens.
This commit is contained in:
parent
a224c7818b
commit
49a75b2d78
9 changed files with 307 additions and 54 deletions
17
exceptions.h
17
exceptions.h
|
@ -12,4 +12,21 @@ namespace YAML
|
|||
class IllegalMapValue: public Exception {};
|
||||
class IllegalScalar: public Exception {};
|
||||
class IllegalTabInScalar: public Exception {};
|
||||
class DocIndicatorInQuote: public Exception {};
|
||||
class EOFInQuote: public Exception {};
|
||||
class UnknownEscapeSequence: public Exception {
|
||||
public:
|
||||
UnknownEscapeSequence(char ch_): ch(ch_) {}
|
||||
char ch;
|
||||
};
|
||||
class NonHexNumber: public Exception {
|
||||
public:
|
||||
NonHexNumber(char ch_): ch(ch_) {}
|
||||
char ch;
|
||||
};
|
||||
class InvalidUnicode: public Exception {
|
||||
public:
|
||||
InvalidUnicode(unsigned value_): value(value_) {}
|
||||
unsigned value;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue