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/jflexExtensions 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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.flex | linguist | primary | 66.4K files |
.jflex | linguist | secondary | 17.1K files |
Related languages
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
/* 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.)