diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-10 09:48:47 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-10 09:48:47 -0700 |
commit | 0e07d523d298ab156bea4fb7570a6cc4b41fb79d (patch) | |
tree | aa634cf2d98c8cfb32d0469439459cec694a6580 /linenoise/example.c | |
parent | 0c09759df87cdbbd33296a086debe58e58587f7e (diff) | |
download | txr-0e07d523d298ab156bea4fb7570a6cc4b41fb79d.tar.gz txr-0e07d523d298ab156bea4fb7570a6cc4b41fb79d.tar.bz2 txr-0e07d523d298ab156bea4fb7570a6cc4b41fb79d.zip |
Support n-ary and and or operators in regex.
Since much regex code assumes these are binary, the easiest
and briefest approach is to implement a code transformation
pass which rewrites n-ary forms into binary.
* regex.c (reg_nary_unfold, reg_nary_to_bin): New
functions.
(regex_compile): Put raw sexp through reg_nary_to_bin
to expand the nary syntax.
Diffstat (limited to 'linenoise/example.c')
0 files changed, 0 insertions, 0 deletions