Best practices for AST design in Rust?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • molten

    An LLVM compiler for an ML-like language (written in Rust)

  • I second looking at the rust compiler. It splits various AST elements into a struct and enum, where the enum is a 'Kind' (eg. Expr for struct which contains an ExprKind enum). That allows things like line numbers and other common data to be easily fetched from the struct and variant-specific values can be stored in the enum, which can be pattern matched. I did a similar thing in a compiler I made a while ago here https://github.com/transistorfet/molten/blob/main/src/analysis/hir.rs

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How good is LLVM in other languages other than C++? (In my case I'm interested in using Rust)

    6 projects | /r/ProgrammingLanguages | 3 Jun 2022
  • How does Rust go “from” here “into” there

    2 projects | dev.to | 19 May 2024
  • Generic constant expressions: a future bright side of nightly Rust

    2 projects | dev.to | 16 May 2024
  • Aya Rust tutorial Part One

    1 project | dev.to | 9 May 2024
  • Moving your bugs forward in time

    4 projects | dev.to | 8 May 2024