Commit Graph

13 Commits

Author SHA1 Message Date
beder
2f5c19fa00 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
17533e22da Instead of deriving different tokens from a base Token class, we now use an enumerated TOKEN_TYPE to distinguish types. This is so we don't have to cast all the time when parsing the resulting token stream.
Also, removed start/end stream tokens.
2008-06-30 21:47:21 +00:00
beder
a93584b065 Added directives and tags. 2008-06-30 04:22:41 +00:00
beder
4de9cb48a5 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
3c56fd49eb Moved the scalar-related functions to their own file. 2008-06-29 03:11:25 +00:00
beder
45dfc719e1 2008-06-29 00:33:34 +00:00
beder
566916ba19 Added folded and literal scalars. 2008-06-28 20:08:21 +00:00
beder
70afd130ad Added simple keys.
There's a bug (and question): should we test simple keys' validity BEFORE stuff or AFTER stuff?
2008-06-28 06:36:59 +00:00
beder
ba132b01bc Small plain scalar scanning fixes. 2008-06-27 20:54:43 +00:00
beder
20dba9cd75 The plain scalar scanner is almost done (and it scans a simple list correctly).
Also messed around with multiple character peeking on the input, and got something working.
2008-06-27 00:18:52 +00:00
beder
c7274ff2e8 More simple scalar scanning. 2008-06-26 22:00:39 +00:00
beder
2040e4de8b Continued working on scanner.
We're now using exceptions for errors, and scanning/pushing tokens is exception-safe (using a set of "limbo tokens").
2008-06-26 19:30:11 +00:00
beder
4b33531240 Started the scanner. 2008-06-26 09:05:28 +00:00