Skip to content

Commit

Permalink
nr2.0: Add ForeverStack data structure.
Browse files Browse the repository at this point in the history
This data structure replaces our existing scopes and allows for multiple
name resolution passes to insert definitions or look up names at different
stages of the pipeline. The documentation goes into detail about how the
data structure works, and how the source's hierarchy is preserved
throughout the pipeline.

The class is templated to enforce specific behavior based on the namespace
the scope map targets.

gcc/rust/ChangeLog:

	* resolve/rust-forever-stack.h: New file.
	* resolve/rust-forever-stack.hxx: New file.
  • Loading branch information
CohenArthur committed Jul 9, 2023
1 parent 763dd38 commit 6824522
Show file tree
Hide file tree
Showing 2 changed files with 758 additions and 0 deletions.

0 comments on commit 6824522

Please sign in to comment.