scarf-syntax 0.2.1

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
// =======================================================================
// strings.rs
// =======================================================================
//! CST Nodes from 1800-2023 A.8.8
use crate::*;

#[derive(Clone, Debug, PartialEq)]
pub enum StringLiteral<'a> {
    QuotedString(Box<QuotedString<'a>>),
    TripleQuotedString(Box<TripleQuotedString<'a>>),
}

#[derive(Clone, Debug, PartialEq)]
pub struct QuotedString<'a>(pub &'a str, pub Metadata<'a>);

#[derive(Clone, Debug, PartialEq)]
pub struct TripleQuotedString<'a>(pub &'a str, pub Metadata<'a>);