Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builtin function evaluation in the semantic analyzer #326

Open
Tracked by #155
Jacajack opened this issue Nov 21, 2023 · 0 comments
Open
Tracked by #155

Builtin function evaluation in the semantic analyzer #326

Jacajack opened this issue Nov 21, 2023 · 0 comments
Assignees
Labels
analyzer Related to semantic & design analyzers enhancement New feature or request

Comments

@Jacajack
Copy link
Owner

Feature description

Builtin function evaluation needs to be implemented. This is needed for code such as:

module X {}

impl X {
	const ubus<4> x = 0;
	const ubus<3> y = 0;

	auto z = match (join(x, y)) {
		join(4u4, 4u3) => 4u11,
		join(3u4, 3u3) => 3u11,
		join(2u4, 2u3) => 2u11,
		join(1u4, 1u3) => 1u11,
		default => 0,
	};
}

Was experimenting with join-based-poor-man's-tuples.

@Jacajack Jacajack added enhancement New feature or request analyzer Related to semantic & design analyzers labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer Related to semantic & design analyzers enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants