1
0
forked from Alepha/Alepha

10 Commits

Author SHA1 Message Date
0737afc002 Add line-comment filter for streambuf. 2024-08-08 17:12:33 -04:00
3844026429 Move streamable name to be more like the others. 2024-05-07 22:46:38 -04:00
38df35ebc4 IOStream filter stage.
This permits creation of custom filtration stages in the IOStream
streambuf stack.
2024-04-03 23:44:51 -04:00
7410245314 Input stream stacking with line numbers!
This should help when building custom language parsers.  An input
stream can be augmented with this stackable streambuf to track
the current line number.  This can (and should) be done low in
the stack, so that any variable expansion and comment stripping
stages will not affect line number count.

The stage bolts on a stream state sidecar to point back to itself.
The observer for the current line peeks into the sidecar to see
the current line number tracking object for the stream and then
gets the current line number from that object.

The line number is the current line the input cursor is on.
Newline characters are treated as-if they're part of the current
line.  The newly created line will start on the first character
after the newline character.  This helps keep line-index counts
accurate too.  (Idea for a further stage?  Line index cursor
too?)
2024-04-03 08:29:10 -04:00
db70cb3b08 Relocate StackableStreambuf to IOStreams. 2023-11-10 13:30:08 -05:00
e3ceed0233 A unix file descriptor streambuf for writing. 2023-11-10 01:49:42 -05:00
c6bce63536 Forgot the rename in the cmake for the streamable capability 2023-10-29 06:01:45 -04:00
01cf7bc0a9 Unified streamable support capability. 2023-10-29 05:59:55 -04:00
e1d3374e09 Delimiters helpers which work with ostream helpers. 2023-10-23 03:31:23 -04:00
08971abb06 Add IStreamable helper. 2023-10-22 04:43:25 -04:00