Commit Graph

11 Commits

Author SHA1 Message Date
beder
b37d66d61e Centralized the error messages to one location. 2008-07-08 20:31:48 +00:00
beder
cf0b3834b8 Combined the myriad ScannerExceptions and ParserExceptions to a single ParserException class that has a message and a line/column position in the file where the error occurred. 2008-07-08 05:48:38 +00:00
beder
74e6e2dd7d Rewrote the output so that it emits correct YAML.
Fixed a bug in the last newline of a block folded scalar.
2008-07-05 05:28:23 +00:00
beder
aad4c081fe Fixed opening newline bug for block scalars. 2008-07-01 06:34:55 +00:00
beder
31e25df6cf Renamed the stream member functions get() and eat(). 2008-06-30 22:34:10 +00:00
beder
46ab9103a6 Moved the three scalar token scanning functions back to scantoken.cpp, so scanscalar.cpp now only has the main scalar scanning function.
Renamed ScanScalarInfo to ScanScalarParams.
2008-06-30 01:38:32 +00:00
beder
88e6bc7718 Mostly finished refactoring the scalar scanning. 2008-06-30 01:31:23 +00:00
beder
8ffdbb026d Moved scalar scanning-related parameters to a struct.
Renamed the valid/possible tokens to a single variable status with enums valid, invalid, and unverified.
2008-06-29 17:39:33 +00:00
beder
7478308488 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. 2008-06-29 06:32:13 +00:00
beder
88ee96d432 Refactored common scalar scanning code (from plain, quoted, and block) to one function. 2008-06-29 05:45:41 +00:00
beder
abcea93589 Moved the scalar-related functions to their own file. 2008-06-29 03:11:25 +00:00