Skip to content

Add dataloader::dsl::Traverse for AST processing - #879

Draft
Spartan322 wants to merge 2 commits into
masterfrom
add/traverse-dsl
Draft

Spartan322 wants to merge 2 commits into
masterfrom
add/traverse-dsl

Conversation

@Spartan322

@Spartan322 Spartan322 commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Add generalized Traverse rules for AST processing

Add dataloader analysis diagnostics for AST processing Add DiagnosticItem to represent a diagnostic
Add DiagnosticLevel
Add DiagnosticRenderer for abstracted rendering of DiagnosticItems
Add DiagnosticBag to store DiagnosticItems with Parser pointer
Add diagnostic sinks for runtime abstracted diagnostic rendering:

  • TextSink: generic textual sink
  • StringSink: string writing sink
  • FileSink: FILE descriptor sink

@Spartan322 Spartan322 added enhancement Issue that describes an improvement to the project topic:core Issue that applies to core functions, fundamental to the rest of the module topic:tests Issue that applies to the tests of the module, whether it be adding or modifying tests topic:dataloader Issue that relates specifically to game dataloading behavior labels Oct 3, 2026
@Spartan322
Spartan322 force-pushed the add/traverse-dsl branch 9 times, most recently from 5aaa4e9 to 2714137 Compare October 9, 2026 07:44
Add generalized Traverse rules for AST processing

Add dataloader analysis diagnostics for AST processing
Add DiagnosticItem to represent a diagnostic
Add DiagnosticLevel
Add DiagnosticRenderer for abstracted rendering of DiagnosticItems
Add DiagnosticBag to store DiagnosticItems with Parser pointer
Add diagnostic sinks for runtime abstracted diagnostic rendering:
	- TextSink: generic textual sink
	- StringSink: string writing sink
	- FileSink: FILE descriptor sink

Add SIZE template parameter to `memory::fmt::basic_memory_buffer`

@BrickPi BrickPi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First look through, looks good architecturally, compile time deduplication specifically is very nice. If you'd like I can write up some tests.

return result;
}

void TextSink::render_annotation(DiagnosticItem const& item, memory_buffer_type& buf, std::string_view annotation) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never checks line_marker.is_invalid() (or end_column == 0 underflow), is that safe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issue that describes an improvement to the project topic:core Issue that applies to core functions, fundamental to the rest of the module topic:dataloader Issue that relates specifically to game dataloading behavior topic:tests Issue that applies to the tests of the module, whether it be adding or modifying tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants