kbnf-syntax 0.5.3

An internal syntax crate for kbnf crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use alloc::string::String;

use serde::Serialize;
use string_interner::symbol::SymbolU32;

#[derive(Debug, Clone, Serialize)]
pub struct Expression {
    pub lhs: String,
    pub rhs: crate::Node,
}

#[derive(Debug, Clone)]
pub struct ExpressionWithID {
    pub lhs: SymbolU32,
    pub rhs: crate::node::NodeWithID,
}