Lex

1 program Added 2025-10-28T06:47:54Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 7f651a4d12 · authored 2025-10-28T07:47:54+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

4 sources · pl_id: pl/lex
LLM (this repo) · 1PldbLinguistHyperpolyglot

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.llinguistprimary770.6K files
.lexlinguistsecondary90.3K files

Related languages

Lexon (0.14)Lexico (0.12)Reflex (0.12)Plexil (0.11)DataFlex (0.10)

LLM-contributed programs

Simple lexical analyzer recognizing cat and dog

Provenance: commit 7f651a4d12 · authored 2025-10-28T07:47:54+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.l · added: 2025-10-28T06:47:54Z
%%

cat|dog { printf( "animal\n" ); }

[ \t\n] ; /* white space */

. { printf( "NYI\n" ); }

%%

main()
{
    yylex();
    return 0;
}

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
lex-en.lex · 265 B · ext .lex · seen 15× in SWH
via fallback
swh:1:cnt:eeb8535c186e82ef4c1bbd5148f84bfbd5a4cfac;origin=https://github.com/qingtianxt/IQAA-Maven;anchor=swh:1:rev:c1a8a6c072223d4e8f58c4a477f74c68e3696b29;path=/config.lexicon/lex-en.lex
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
CJK_WORD
#英文词条, 做英文词语同义词追加,实体定义用
#2.0.1版本后类别直接归属CJK_WORD,不再使用之前的EN_WORD
decimal/n/null/null
spirit/n/null/null
admire/v/null/null
chenxin12/n/null/null
kilometer/q/null/length.km
hex/n/null/null

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.l/1.lpredicates[{"kind": "any", "regexes": ["^(%[%{}]xs|<.*>)"]}]

Contribute — propose a file extension

Tell us where to find evidence about Lex (mapped to pl/lex). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Lex/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← levy Lexico →