Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
// AUTO-GENERATED by scripts/build_mermaid_grammars.mts from the grammar in this directory.
// This file was generated by lezer-generator. You probably shouldn't edit it.
import {LRParser} from "@lezer/lr"
import {relationshipStart} from "./tokens.js"
import {requirementHighlighting} from "./highlight.js"
const spec_word = {__proto__:null,requirementDiagram:152, requirement:158, Requirement:160, functionalRequirement:162, FunctionalRequirement:164, performanceRequirement:166, PerformanceRequirement:168, interfaceRequirement:170, InterfaceRequirement:172, physicalRequirement:174, PhysicalRequirement:176, designConstraint:178, DesignConstraint:180, element:182, Element:184, id:24, Id:26, ID:28, text:36, Text:38, risk:42, Risk:44, low:48, Low:50, medium:52, Medium:54, high:56, High:58, verifymethod:62, verifyMethod:64, VerifyMethod:66, analysis:70, Analysis:72, demonstration:74, Demonstration:76, inspection:78, Inspection:80, test:82, Test:84, type:88, Type:90, docRef:94, DocRef:96, contains:104, Contains:106, copies:108, Copies:110, derives:112, Derives:114, satisfies:116, Satisfies:118, verifies:120, Verifies:122, refines:124, Refines:126, traces:128, Traces:130}
export const parser = LRParser.deserialize({
version: 14,
states: ")fOYQQOOO_QQO'#DxQOQQOOOOQO'#C`'#C`O!kQRO,5:dO!rOSO'#CdO!zQWO'#D|OOQO'#Eh'#EhO#SQQO'#D_O#[QRO'#DrO$fQRO1G0OOOQO'#Ca'#CaOOOO'#Ds'#DsO$mOSO,59OOOQP,59O,59OOOQP'#Cc'#CcOOQP'#Cb'#CbO$uQQO,5:hO$zQQO,59yO$zQQO,59yOOQP,5:^,5:^OOQP-E7p-E7pOOOO-E7q-E7qOOQP1G.j1G.jO%xQQO1G0SO%}QQO1G/eOOQO'#Da'#DaO&SQQO1G/eO'VQQO7+%nO!zQWO7+%PO'^QQO'#EaO'cQQO'#EbO'hQQO'#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P$iPP$mPP$qP$uPPPPPPPPPPPPPPPP${%R%XPPP%_PPP$qPPPPPPPPPPPPPPPPP%b%f%f%j%f%f%f%f%sRPOTUSYQaUR!OmS`UmV!Z!Q!T!USVSYS`UmV!Z!Q!T!UTnlvTolvTplvR!]!RTqlvR!_!STrlvTslvTXSYQibRkcQYSReYQ]TRf]QvlR!WvRQOTulvTtlvQ![!QQ!a!TR!b!UTWSY",
nodeNames: "⚠ RelationshipStart LineComment RequirementDiagram DiagramName SubDiagramType Name UnquotedString QuotedString { } ID PropKeyword PropKeyword PropKeyword : IDNumber Text PropKeyword PropKeyword Risk PropKeyword PropKeyword RiskType Keyword Keyword Keyword Keyword Keyword Keyword VerifyMethod PropKeyword PropKeyword PropKeyword VerifyMethodType Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Type PropKeyword PropKeyword DocRef PropKeyword PropKeyword RelationshipLine Hyphen RelationshipType Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword Keyword ForwardArrow BackArrow",
maxTerm: 104,
propSources: [requirementHighlighting],
skippedNodes: [0,2],
repeatNodeCount: 3,
tokenData: "4V~R{OX#xXY$aYZ&SZ^$a^p#xpq$aqr#xrs'}su#xuv(Sv}#x}!O)v!O!Q#x!Q![*t![!]+|!]!^#x!^!_,a!_!c#x!c!}-]!}#T#x#T#o-]#o#p3_#p#q#x#q#r3r#r#y#x#y#z$a#z$f#x$f$g$a$g#BY#x#BY#BZ$a#BZ$IS#x$IS$I_$a$I_$I|#x$I|$JO$a$JO$JT#x$JT$JU$a$JU$KV#x$KV$KW$a$KW&FU#x&FU&FV$a&FV;'S#x;'S;=`$Z<%lO#xQ#}S#RQOr#xs;'S#x;'S;=`$Z<%lO#xQ$^P;=`<%l#xV$hh#RQ!kTOX#xX^$a^p#xpq$aqr#xs#y#x#y#z$a#z$f#x$f$g$a$g#BY#x#BY#BZ$a#BZ$IS#x$IS$I_$a$I_$I|#x$I|$JO$a$JO$JT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