JFlex

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: JFlex specification language
Provenance: commit 5b4169836e · authored 2026-03-06T11:25:08+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

4 sources · pl_id: pl/jflex
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
.flexlinguistprimary66.4K files
.jflexlinguistsecondary17.1K files

Related languages

Z (0.56)RSL (0.55)RAISE (0.53)MASL (0.49)SDL (0.47)

LLM-contributed programs

Word and Line Counter

Provenance: commit 5b4169836e · authored 2026-03-06T11:25:08+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.jflex · added: 2026-03-06T10:00:00Z
/* JFlex example: simple word and line counter */

%%

%class WordCounter
%standalone

%{
  int lines = 0, words = 0, chars = 0;
%}

nl  = \r|\n|\r\n
word = [^ \t\r\n]+

%%

{nl}    { lines++; chars += yylength(); }
{word}  { words++; chars += yylength(); }
.       { chars++; }
<<EOF>> { System.out.println("Lines: "+lines+", Words: "+words+", Chars: "+chars); }

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about JFlex (mapped to pl/jflex). 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/JFlex/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← jevko jfugue →