textproc/flex 2.6.4 MidnightBSD
Fast lexical analyzer generator
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd3
- Categories
- textproc
Description
Flex is a tool for generating scanners. A scanner, sometimes called a tokenizer, is a program which recognizes lexical patterns in text. The flex program reads user-specified 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 a C source file named, "lex.yy.c", which defines the function yylex(). The file "lex.yy.c" can be compiled and linked to produce an executable. When the executable is run, it analyzes its input for occurrences of text matching the regular expressions for each rule. Whenever it finds a match, it executes the corresponding C code.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | textproc/flex | 2.6.4 |
| FreeBSD | textproc/flex | 2.6.4_3 |
| NetBSD | devel/flex | 2.6.4 |
| DragonFly | textproc/flex | 2.6.4_3 |
Install
Binary package:
mport install flex
From mports:
cd /usr/mports/textproc/flex && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= flex>0:textproc/flex
Dependencies
As this port's Makefile names them.
Build 2
help2man: misc/help2mangm4: devel/m4
Runtime 1
gm4: devel/m4
Build dependencies 2
Run dependencies 1
Configuration
Options name: textproc_flex
| Option | Default | Description |
|---|---|---|
| DOCS | off | |
| EXAMPLES | off | |
| NLS | off |
- USES
- bison gmake libtool makeinfo cpe
- Service scripts
- none
Files
Manual pages 1
- flex(1)
pkg-plist 28
- bin/flex
- bin/flex++
- include/flex/FlexLexer.h
- lib/libfl.a
- share/man/man1/flex.1.gz
- share/locale/ca/LC_MESSAGES/flex.mo
- share/locale/da/LC_MESSAGES/flex.mo
- share/locale/de/LC_MESSAGES/flex.mo
- share/locale/en@boldquot/LC_MESSAGES/flex.mo
- share/locale/en@quot/LC_MESSAGES/flex.mo
- share/locale/eo/LC_MESSAGES/flex.mo
- share/locale/es/LC_MESSAGES/flex.mo
- share/locale/fi/LC_MESSAGES/flex.mo
- share/locale/fr/LC_MESSAGES/flex.mo
- share/locale/ga/LC_MESSAGES/flex.mo
- share/locale/hr/LC_MESSAGES/flex.mo
- share/locale/ko/LC_MESSAGES/flex.mo
- share/locale/nl/LC_MESSAGES/flex.mo
- share/locale/pl/LC_MESSAGES/flex.mo
- share/locale/pt_BR/LC_MESSAGES/flex.mo
- share/locale/ro/LC_MESSAGES/flex.mo
- share/locale/ru/LC_MESSAGES/flex.mo
- share/locale/sr/LC_MESSAGES/flex.mo
- share/locale/sv/LC_MESSAGES/flex.mo
- share/locale/tr/LC_MESSAGES/flex.mo
- share/locale/vi/LC_MESSAGES/flex.mo
- share/locale/zh_CN/LC_MESSAGES/flex.mo
- share/locale/zh_TW/LC_MESSAGES/flex.mo
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| flex-2.6.4.tar.gz | 1.419096e+06 | e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995 |
Master sites 1
- https://github.com/westes/flex/releases/download/v2.6.4/