Skip to content

Commit 22c7e87

Browse files
committed
update StringProcessor.ts
1 parent 94055c0 commit 22c7e87

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/core/utils/StringProcessor.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { FlowchartEdge, FlowchartNode } from "../../ir/ir";
2+
13
export class StringProcessor {
24
private static escapeCache = new Map<string, string>();
35
private static readonly MAX_CACHE_SIZE = 1000;
4-
56
private static readonly escapeRegex = /"|\\|\n|<|>|`/g;
67
private static readonly colonRegex = /:$/;
78
private static readonly escapeMap: Record<string, string> = {
@@ -57,4 +58,16 @@ export class StringProcessor {
5758
static clearCache(): void {
5859
this.escapeCache.clear();
5960
}
61+
}
62+
export interface ProcessResult {
63+
nodes: FlowchartNode[];
64+
edges: FlowchartEdge[];
65+
entryNodeId?: string;
66+
exitPoints: { id: string; label?: string }[];
67+
nodesConnectedToExit: Set<string>;
68+
}
69+
70+
export interface LoopContext {
71+
breakTargetId: string;
72+
continueTargetId: string;
6073
}

0 commit comments

Comments
 (0)