Skip to content

Conversation

@doriath
Copy link
Contributor

@doriath doriath commented Dec 21, 2024

The initial implementation only handles simple math expressions, the focus is primarily on introducing new structs, agreeing on naming and adding the output to insta tests.

The initial implementation only handles simple math expressions, the focus is
primarily on introducing new structs, agreeing on naming and adding the output
to insta tests.

[dependencies]
tracy-client = { version = "0.17.3", default-features = false } # for tracy v0.11.1
nu-protocol = "*"
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to use a labeled version and bump manually to avoid sudden CI breakages.

let mut next_free_reg = RegId::new(0);
let mut last_reg = RegId::new(0);
let mut node_to_reg: HashMap<NodeId, RegId> = HashMap::new();
for (i, ast_node) in self.compiler.ast_nodes.iter().enumerate() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this start from the top-level block, like Resolver or Typechecker?

@doriath doriath closed this Jan 2, 2025
@doriath doriath deleted the push-kosuysyztkqo branch January 2, 2025 06:49
@doriath doriath restored the push-kosuysyztkqo branch January 2, 2025 07:45
@doriath doriath deleted the push-kosuysyztkqo branch January 2, 2025 07:45
@doriath
Copy link
Contributor Author

doriath commented Jan 2, 2025

Sorry for closing it, will revive it soon.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants