PageSourceSearch

https://app.usefluency.com/assets/railroadDiagram-AXF67PYL-CsxfHKjM.js

js usefluency.com collected 2026-10-04 10:00:22 UTC 1,721 bytes, 1 lines download raw bytes

1import{g as s,r as l,d as t}from"./chunk-6Q2QTUOP-CCZGW04h.js";import{p as m}from"./chunk-JWPE2WC7-DgkhTBf-.js";import{_ as n,l as i}from"./mermaid.core-BKJWMU9u.js";import"./transform-DQXbhxwQ.js";import{M as p,c as u}from"./cynefin-VYW2F7L2-DjEOBQS3.js";import"./index-BFRpoUTY.js";import"./step-C2n-0RTN.js";import"./path-C6GLxKlP.js";import"./string-BMakcReN.js";var d=u().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(),i.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},S={parser:y,db:t,renderer:l,styles:s};export{S 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.