Crates.io | rush-analyzer |
lib.rs | rush-analyzer |
version | 0.1.1 |
source | src |
created_at | 2022-12-11 17:16:05.082506 |
updated_at | 2022-12-28 14:03:27.214069 |
description | A semantic analyzer and type-annotator for the rush programming language |
homepage | |
repository | https://github.com/rush-rs/rush.git |
max_upload_size | |
id | 734422 |
size | 133,153 |
A crate which performs semantic analysis and tree-annotation on rush programs.
Almost every rush compiler backend requires the semantic correctness of its input tree. Furthermore, the backends often require precise type information at compile time in order to compile the correct output.
Therefore, the analyzer traverses an
AST generated by the
rush-parser
and adds type information whilst validating its semantic correctness.
This way, many compiler backends can be significantly simplified due to the lack of unnecessary checks during program compilation.