aboutsummaryrefslogtreecommitdiff
path: root/compiler.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-12 21:28:44 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-12 21:28:44 -0800
commit5811ff4554da3d980ff32a83efa35ea1a4512484 (patch)
tree752ee83bb6b671f8686809f04df0f63b5a0b1a82 /compiler.c
parentb27b71608b3ba4715d629c597efd17c124a8cc22 (diff)
Adding comments
Diffstat (limited to 'compiler.c')
-rw-r--r--compiler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler.c b/compiler.c
index 74044a8..1c8974c 100644
--- a/compiler.c
+++ b/compiler.c
@@ -581,6 +581,9 @@ vm_op_t *bp_replacement(file_t *f, vm_op_t *pat, const char *replacement)
return op;
}
+//
+// Compile a string representing a BP pattern into an opcode object.
+//
vm_op_t *bp_pattern(file_t *f, const char *str)
{
vm_op_t *op = bp_simplepattern(f, str);