lex
$ lex Community Low Risklex (lex) — Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. Note: On most major OSes, this command is an alias for flex.. Verified across tldr-pages Corpus, npm Registry; included for structured shell automation under FCRS-1.0 baseline review.
npm install -g @nlabs/lex Pure CLI utility (lex); directly invoked in shell workflows without an equivalent MCP server layer.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Registry-verified CLI binary (lex); inspect --help output before assuming structured JSON flags.
- Indexed in tldr-pages Corpus, npm Registry
- Command usage documented in tldr-pages
Classified as low risk based on files-search scope and upstream package metadata.
- Install channel verified via
npm install -g @nlabs/lex - Package checksum verified by upstream registry
Installable via npm install -g @nlabs/lex across macos, linux, windows.
- Primary install:
npm install -g @nlabs/lex
Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. Note: On most major OSes, this command is an alias for flex.
- Official homepage/source: https://manned.org/lex
community lineage tool maintained by POSIX / Open Source.
- Upstream repository: nitrogenlabs/lex
Upstream documentation linked at https://manned.org/lex; baseline FCRS cap applies until local probe runs.
- https://manned.org/lex
Security, Auth & Guardrails
Local execution tool; typically requires no external credentials unless targeting remote endpoints.
Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.
When invoking `lex`, verify flags with `lex --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.
Agent-Ready Command Recipes
Safe Read-Only Queries
lex --help
Discover supported flags and subcommands for lex before constructing automated calls.
lex --version
Confirm lex is installed and executable in PATH with zero side effects.
Strengths for Agents
- + Indexed in tldr-pages Corpus, npm Registry with reproducible install via
npm install -g @nlabs/lex - + Includes practical community usage examples in tldr-pages for
lex
Caveats & Pitfalls
- ! Low-confidence baseline review: not yet locally probed on this host; run
lex --helpto verify flags before scripting