PageSourceSearch

https://revstrata.co/assets/railroadDiagram-RFXS5EU6-C7FATYLp.js

js revstrata.co collected 2026-10-02 01:21:57 UTC 1,571 bytes, 1 lines download raw bytes

1import{d as t,r as o,g as l}from"./chunk-MOJQB5TN-DAmcyU_2.js";import{p as m}from"./chunk-JWPE2WC7-DPgTkFIm.js";import{_ as n,l as s}from"./index-CiDGRO7F.js";import{c as p,M as u}from"./cynefin-VYW2F7L2-vMVj89KJ.js";var d=p().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),g(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:y,db:t,renderer:o,styles:l};export{h as diagram};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.