设计tracer

This commit is contained in:
2025-10-28 21:05:47 +08:00
parent beac8e222b
commit f0812167c0

View File

@@ -12,11 +12,38 @@ export const ARRAY_TRACER_ACTIONS = [
export type ArrayTracerAction = (typeof ARRAY_TRACER_ACTIONS)[number];
export const STACK_TRACER_ACTIONS = [
//
'define',
'push',
'pick',
'drop',
'patch',
'reset',
] as const;
export type StackTracerAction = (typeof STACK_TRACER_ACTIONS)[number];
export type TracerAction = ArrayTracerAction | StackTracerAction;
export const QUEUE_TRACER_ACTIONS = [
'define',
'pick',
'drop',
'patch',
'reset',
] as const;
export type QueueTracerAction = (typeof QUEUE_TRACER_ACTIONS)[number];
export const MATRIX_TRACER_ACTIONS = [
'define',
'preset',
'pick',
'drop',
'patch',
'reset',
] as const;
export type MatrixTracerAction = (typeof MATRIX_TRACER_ACTIONS)[number];
export type TracerAction =
| ArrayTracerAction
| StackTracerAction
| QueueTracerAction
| MatrixTracerAction;