devel/flex 2.6.4 NetBSD
Fast clone of lex(1), the lexical scanner generator
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- 2-clause-bsd
- Categories
- devel, lang
- Package size
- 269.1 KiB, 1214.9 KiB installed
Description
flex is a tool for generating scanners: programs which recognized lexical patterns in text. flex reads the given input files, or its standard input if no file names are given, for a description of a scanner to generate. The description is in the form of pairs of regular expressions and C code, called rules. flex generates as output a C source file, lex.yy.c, which defines a routine yylex(). This file is compiled and linked with the -lfl library to produce an executable. When the executable is run, it analyzes its input for occurrences of the regular expressions. Whenever it finds one, it executes the corresponding C code.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/flex | 2.6.4 |
| FreeBSD | textproc/flex | 2.6.4_3 |
| DragonFly | textproc/flex | 2.6.4_3 |
| MidnightBSD | textproc/flex | 2.6.4 |
| HardenedBSD | textproc/flex | 2.6.4_3 |
| GhostBSD | textproc/flex | 2.6.4_3 |
Install
Binary package:
pkgin install flex
From pkgsrc:
cd /usr/pkgsrc/devel/flex && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.6.4 |
| NetBSD 10.1 aarch64 | 2.6.4 |
| SmartOS / illumos x86_64 | 2.6.4 |
| macOS 15 arm64 | 2.6.4 |