Bison
1 program
Added 2026-02-07T11:05:20Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: GNU Bison
Provenance: commit ca5c785625 · authored 2026-02-07T12:06:23+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/bisonExtensions claimed by this language
1 claim. 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 |
|---|---|---|---|
.bison | linguist | primary | 2.9K files |
Related languages
LLM-contributed programs
Simple Calculator
Provenance: commit ca5c785625 · authored 2026-02-07T12:06:23+01:00 · agent claude-code · model sonnet · WebSearch disabled
%{
#include <stdio.h>
#include <stdlib.h>
void yyerror(const char *s);
int yylex(void);
%}
%token NUMBER
%left '+' '-'
%left '*' '/'
%%
input:
| input line
;
line:
'\n'
| exp '\n' { printf("Result: %d\n", $1); }
;
exp:
NUMBER { $$ = $1; }
| exp '+' exp { $$ = $1 + $3; }
| exp '-' exp { $$ = $1 - $3; }
| exp '*' exp { $$ = $1 * $3; }
| exp '/' exp { $$ = $1 / $3; }
| '(' exp ')' { $$ = $2; }
;
%%
void yyerror(const char *s) {
fprintf(stderr, "Error: %s\n", s);
}
int main(void) {
return yyparse();
}
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.)