Ports for SerenityOS
Collections What's new Versions Info Sign in

flex 2.6.4

Lexical analyzer generator.

cd Ports/flex
./package.sh

Screenshot

Flex is a tool for generating lexical analyzers, also known as scanners or tokenizers, that is often used in programming language implementation and other text processing tasks. It takes a specification file that defines regular expressions and corresponding actions, and generates a C program that can read input text and identify tokens based on the patterns defined in the specification.

The Flex lexical analyzer operates by reading input characters and applying a set of regular expressions to determine the longest match that can be found at the current position in the input. When a match is found, the corresponding action is executed, which typically involves returning a token to the parser or performing some other processing step.

Website: https://github.com/westes/flex

Port: https://github.com/SerenityOS/serenity/tree/master/Ports/flex

Dependencies: m4 pcre2 🖧

Sign in to vote

✍️ Edit this page

Similar ports

Port icon has the following license: Attribution 4.0 International (CC BY 4.0)