scarf-syntax 0.1.0

A helper crate of scarf for expressing a SystemVerilog concrete syntax tree
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// =======================================================================
// expressions.rs
// =======================================================================
// AST Nodes from 1800-2023 A.8.3

use crate::*;

pub type ConstantExpression<'a> = ();
pub type ConstantParamExpression<'a> = ();

#[derive(Clone, Debug, PartialEq)]
pub struct ConstantRange<'a>(
    pub ConstantExpression<'a>,
    pub Metadata<'a>, // :
    pub ConstantExpression<'a>,
);

pub type Expression<'a> = ();