diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-08 00:31:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-08 00:31:40 -0700 |
| commit | 575019c7e0b72be3c205ac03f520e160e4d84248 (patch) | |
| tree | b595933e6b6af39c378583c3a944029fc7368a2b /bpeg.h | |
| parent | f7ea26c582945a254dc20d87760cbaa52dbef3a7 (diff) | |
Added replacement functionality
Diffstat (limited to 'bpeg.h')
| -rw-r--r-- | bpeg.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -74,13 +74,14 @@ typedef struct vm_op_s { } vm_op_t; +static inline const char *after_spaces(const char *str); static match_t *free_match(match_t *m); static match_t *match(const char *str, vm_op_t *op); -static void set_range(vm_op_t *op, ssize_t min, ssize_t max, vm_op_t *pat, vm_op_t *sep); -static inline const char *after_spaces(const char *str); -static vm_op_t *expand_choices(vm_op_t *op); -static vm_op_t *expand_chain(vm_op_t *first); static vm_op_t *compile_bpeg(const char *str); +static vm_op_t *expand_chain(vm_op_t *first); +static vm_op_t *expand_choices(vm_op_t *op); +static void print_match(match_t *m, const char *color); +static void set_range(vm_op_t *op, ssize_t min, ssize_t max, vm_op_t *pat, vm_op_t *sep); typedef struct { |
