libfsm

DFA regular expression library & friends

libfsm and friends: NFA, DFA, regular expressions and lexical analysis

; re -cb -pl dot '[Ll]ibf+(sm)*' '[Ll]ibre', dot

libfsm.svg

Getting started:

Lexing is the process of categorising a stream of items by their spellings.
The output from this process is a stream of tokens, each of a specific lexeme
category, which are most commonly input to a parser responsible for asserting
the order of these tokens is valid.

lx is an attempt to produce a simple, expressive, and unobtrusive lexer
generator which is good at lexing, does just lexing, is language independent,
and has no other features.

You get:

  • libfsm — library for manipulating FSM (NFA and DFA)
  • libre — library for compiling regular expressions to NFA
  • fsm(1) — command line interface for FSM
  • re(1) — command line interface for executing regular expressions
  • lx(1) — lexer generator

Clone with submodules (contains required .mk files):

; git clone --recursive https://github.com/katef/libfsm.git

To build and install:

; pmake -r install

You can override a few things:

; CC=clang PREFIX=$HOME pmake -r install

Building depends on:

  • Any BSD make. This includes OpenBSD, FreeBSD and NetBSD make(1)
    and sjg's portable bmake (also packaged as pmake).

  • A C compiler. Any should do, but GCC and clang are best supported.

  • ar, ld, and a bunch of other stuff you probably already have.

Fuzzing depends on the theft property-based testing library:

Ideas, comments or bugs: kate@elide.org

主要指标

概览
名称与所有者voku/Arrayy
主编程语言PHP
编程语言Makefile (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2016-01-25 11:15:40
推送于2025-07-08 10:51:02
最后一次提交2023-09-04 17:34:38
发布数159
最新版本名称7.9.6 (发布于 )
第一版名称1.0.0-rc.1 (发布于 2013-07-28 23:46:18)
用户参与
星数489
关注者数16
派生数33
提交数667
已启用问题?
问题数67
打开的问题数4
拉请求数58
打开的拉请求数7
关闭的拉请求数10
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?