libfsm
libfsm copied to clipboard
DFA regular expression library & friends
When building from the main branch, and after installing, I run `man lx`and the "OPTIONS" header ends up not being parsed. Screenshot illustrates this well:  I know next to...
I was getting the following error when building on MacOS (version 11.6), using `bmake` (version `stable 20211001`) installed from homebrew: ``` ... ld -o build/lib/libfsm.dylib -dylib -flat_namespace -undefined dynamic_lookup -macosx_version_min...
I tried to `bmake -r install`, `PREFIX=/tmp/x bmake -r install` and `CC=clang PREFIX=$HOME bmake -r install` they all die with ```bash sid -l ansi-c -s no-numeric-terminals -s no-terminals src/libre/dialect/glob/parser.sid src/libre/parser.act...
Here I'm introducing Cargo to the build. It's driven from the existing makefiles. This marks the start of porting to Rust by a piecemeal approach, so we'll have a hybrid...
While the -e option does allow putting a prefix on the package name of the generated go, it is a bit awkward to require each matcher to be in its...
Just ran into a situation where \b support would have been nice. cf. https://github.com/katef/libfsm/issues/269
I'm trying to port a use of golang's https://golang.org/pkg/regexp/#Regexp.ReplaceAllString to tinygo, where regexp doesn't work just yet. libfsm works nicely, i.e. I can use ``` re -l go -k str...
This is allocated with `f_malloc` but calls `free` directly. It may be worth auditing the whole codebase and/or using an allocator that checks for this in tests.
Running the following command: $ while true; do sleep 0.1; ./build/bin/lx -l test < src/lx/lexer.lx && echo ok; done will produce a steady stream of memory-related errors in lx. There...
This depends on #343. First we replace the bitfields in a couple of structs with `stdbool.h`, so we can have the same ABI as Rust's `bool` type. Then we make...