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/bison
LLM (this repo) · 1PldbLinguistHyperpolyglot

Extensions 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.
ExtensionSourceStrengthSWH
.bisonlinguistprimary2.9K files

Related languages

Edison (0.25)Egison (0.25)Boron (0.19)Meson (0.19)Bython (0.18)

LLM-contributed programs

Simple Calculator

Provenance: commit ca5c785625 · authored 2026-02-07T12:06:23+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.y · license: GPL · added: 2026-02-07T11:05:20Z
%{
#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.)

Contribute — propose a file extension

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