1cde7fbfc0
Switched from loading test files to testing specific parsing constructs. The tests don't fully cover the span (eventually I'll add more, maybe), but there's a bunch there. More to the point, the yaml-reader program doesn't do any file IO, so it doesn't require a specific working directory.
Jesse Beder2009-05-31 06:36:01 +00:00
ec578d45f1
Switched from loading test files to testing specific parsing constructs. The tests don't fully cover the span (eventually I'll add more, maybe), but there's a bunch there. More to the point, the yaml-reader program doesn't do any file IO, so it doesn't require a specific working directory.
jbeder2009-05-31 06:36:01 +00:00
820f45b10b
Patch to simplify CMakeLists.txt files
Jesse Beder2009-05-29 22:48:25 +00:00
b444913576
Patch to simplify CMakeLists.txt files
jbeder2009-05-29 22:48:25 +00:00
9a1a3974c6
Patch for gcc -Wall (order of initialization)
Jesse Beder2009-05-29 22:36:52 +00:00
c150e9945c
Patch for gcc -Wall (order of initialization)
jbeder2009-05-29 22:36:52 +00:00
e76521c0e9
Changed the way we read different types of scalars. It's better organized now, I think - nodes only offer a single main way of getting the fundamental scalar (as a string), and now we can specialize a single template to read specific types.
Jesse Beder2009-05-23 23:51:01 +00:00
51457eece9
Changed the way we read different types of scalars. It's better organized now, I think - nodes only offer a single main way of getting the fundamental scalar (as a string), and now we can specialize a single template to read specific types.
jbeder2009-05-23 23:51:01 +00:00
b952bc594f
Updated Visual Studio project for the emitter.
Jesse Beder2009-05-23 22:58:05 +00:00
0c34137d84
Updated Visual Studio project for the emitter.
jbeder2009-05-23 22:58:05 +00:00
24b0663828
Changed output library directory to /lib (in the source directory) - this makes more sense
Jesse Beder2009-05-23 17:11:19 +00:00
947356a64a
Changed output library directory to /lib (in the source directory) - this makes more sense
jbeder2009-05-23 17:11:19 +00:00
9d0e0c6a48
Fixed several bugs from the new file i/o setup. In particular: 1. Windows CR/LF weren't read properly (issue #11) 2. Scanning wasn't reading EOF properly 3. Documents may be empty (this was old, I think) Also fixed some VS2008 warnings on /W4.
Jesse Beder2009-02-07 07:57:13 +00:00
7297387015
Fixed several bugs from the new file i/o setup. In particular: 1. Windows CR/LF weren't read properly (issue #11) 2. Scanning wasn't reading EOF properly 3. Documents may be empty (this was old, I think) Also fixed some VS2008 warnings on /W4.
jbeder2009-02-07 07:57:13 +00:00
f9c0725684
Switched to reading the entire file into a buffer at the start.\nThis speeds it up a TON (like 100x).
Jesse Beder2009-02-01 20:48:43 +00:00
855d0d60df
Switched to reading the entire file into a buffer at the start.\nThis speeds it up a TON (like 100x).
jbeder2009-02-01 20:48:43 +00:00
a6d5902ebf
Included <cstdio> for gcc-4.4 (issue 9)
Jesse Beder2009-01-27 21:08:40 +00:00
e9512a5ac8
Included <cstdio> for gcc-4.4 (issue 9)
jbeder2009-01-27 21:08:40 +00:00
d44502c979
Applied patch for gcc -Wall
jbeder2009-01-15 17:12:13 +00:00
7214ffc107
Re-added the throw() specification to ~Exception(), and also to ~TypedKeyNotFound(); I suppose this'll fix the gcc compiler error.
Jesse Beder2009-01-01 23:59:37 +00:00
6434b4f0c8
Re-added the throw() specification to ~Exception(), and also to ~TypedKeyNotFound(); I suppose this'll fix the gcc compiler error.
jbeder2009-01-01 23:59:37 +00:00
d98f9d8713
Removed throw() specifier in Exception (I don't remember putting it in). This may solve a gcc error (I haven't tested it yet) or it may break it further.
Jesse Beder2009-01-01 20:14:32 +00:00
4cebe50a9f
Removed throw() specifier in Exception (I don't remember putting it in). This may solve a gcc error (I haven't tested it yet) or it may break it further.
jbeder2009-01-01 20:14:32 +00:00
27bd791ea0
Added a templated derived exception to KeyNotFound so that you can figure out *which* key wasn't found.
Jesse Beder2009-01-01 02:40:18 +00:00
51ea36e444
Added a templated derived exception to KeyNotFound so that you can figure out *which* key wasn't found.
jbeder2009-01-01 02:40:18 +00:00
ad2b9fbaaf
Fixed tag output bug
jbeder2008-11-20 04:12:31 +00:00
f8d81fff8c
Replaced a pointer-centered try/catch block with std::auto_ptr
Jesse Beder2008-11-20 03:41:40 +00:00
4b45a7185a
Replaced a pointer-centered try/catch block with std::auto_ptr
jbeder2008-11-20 03:41:40 +00:00
043bbddcf0
Added line/column data for nodes so they can give better invalid scalar exceptions.
Jesse Beder2008-11-18 04:20:07 +00:00
27da48bac2
Added line/column data for nodes so they can give better invalid scalar exceptions.
jbeder2008-11-18 04:20:07 +00:00
9969ff512e
Added line/column data for nodes so they can give better invalid scalar exceptions.
Jesse Beder2008-11-18 04:19:50 +00:00
09d2858dc0
Added line/column data for nodes so they can give better invalid scalar exceptions.
jbeder2008-11-18 04:19:50 +00:00
14cdec770c
Added more natural ways to parse boolean values (based on the YAML spec). (Thanks to Vadim Zeitlin)
Jesse Beder2008-09-25 00:15:40 +00:00
d1ef1e8ef1
Added more natural ways to parse boolean values (based on the YAML spec). (Thanks to Vadim Zeitlin)
jbeder2008-09-25 00:15:40 +00:00
6e4317e37c
Added Read() functions for Node that return true/false, so we can easily check if a read is successful without throwing. But we still have operator >> that throws on failure.
Jesse Beder2008-09-24 23:29:00 +00:00
bf01059c38
Added Read() functions for Node that return true/false, so we can easily check if a read is successful without throwing. But we still have operator >> that throws on failure.
jbeder2008-09-24 23:29:00 +00:00
907be0660c
Fixed infinite loop bug having to do with simple keys when we hit an unexpected EOF.
Jesse Beder2008-09-24 22:45:04 +00:00
ecba08e240
Fixed infinite loop bug having to do with simple keys when we hit an unexpected EOF.
jbeder2008-09-24 22:45:04 +00:00
3ed09b89f8
Fixed a problem where you lose the exception type on rethrow.
Jesse Beder2008-09-23 21:13:23 +00:00
d51888bc7e
Fixed a problem where you lose the exception type on rethrow.
jbeder2008-09-23 21:13:23 +00:00