summaryrefslogtreecommitdiffstats
path: root/llparse-frontend/src/trie/empty.ts
diff options
context:
space:
mode:
Diffstat (limited to 'llparse-frontend/src/trie/empty.ts')
-rw-r--r--llparse-frontend/src/trie/empty.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/llparse-frontend/src/trie/empty.ts b/llparse-frontend/src/trie/empty.ts
new file mode 100644
index 0000000..aba52ea
--- /dev/null
+++ b/llparse-frontend/src/trie/empty.ts
@@ -0,0 +1,9 @@
+import { node as api } from 'llparse-builder';
+import { TrieNode } from './node';
+
+export class TrieEmpty extends TrieNode {
+ constructor(public readonly node: api.Node,
+ public readonly value: number | undefined) {
+ super();
+ }
+}