intel / intel/dml-language-server

Implement constant-folding of expressions

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
enhancement Low Priority
Dominant language
Rust
Stars
9
Forks
9
PR merge metrics
No merged PRs in 30d

Description

The ability to, for at least simple expressions, evaluate their values if they are constant or based only on constant-valued parameters.

Enable us to resolve expressions, hopefully to the same extent and with the same rules as dmlc.

- Needed for detecting/discarding more complicated name collisions around #if
- Needed to report semantic errors around constant/non-constant values
- Useful to preview calculated values of constant parameters on-hover
- Needs to consider that some parameters are set from command-line/dmlc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.