summaryrefslogtreecommitdiff
path: root/src/bsr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bsr.h')
-rw-r--r--src/bsr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bsr.h b/src/bsr.h
index 6c5e17c..64e428a 100644
--- a/src/bsr.h
+++ b/src/bsr.h
@@ -25,6 +25,8 @@
hash-table's almost constant-time look-up feature to implement
this. */
+/* FIXME: Don't use hash-tables, as that uses too much space! */
+
/* A BSR set has two types.
The first type is of the form
@@ -99,6 +101,10 @@ BOOL bsr_find(CCR_MOD(bsr *) b, CCR_MOD(Grammar *) g,
BOOL * const restrict errorp,
NUM X, NUM a, NUM c, NUM i, NUM k, NUM j);
+/* if not found return NULL */
+ht *bsr_lookup(CCR_MOD(bsr *) b, BOOL * const restrict errorp,
+ NUM X, NUM i, NUM j);
+
/* Change to new line after LINE_LEN many elements. */
void bsr_print(CCR_MOD(bsr *) b, CCR_MOD(Grammar *) g, NUM line_len);