Lemon

1 program Added 2026-02-10T21:01:39Z Agent: claude-code-recoveryModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Lemon Parser Generator
Provenance: commit 91a5564a02 · authored 2026-02-11T13:26:25+01:00 · agent claude-code-recovery · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/lemon
LLM (this repo) · 1Pldb

Related languages

MFront (0.26)Axe (0.23)GPM (0.21)SWIG (0.17)GOLD (0.16)

LLM-contributed programs

Calculator Grammar

Provenance: commit 91a5564a02 · authored 2026-02-11T13:26:25+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
code.y · license: Public Domain · added: 2026-02-10T21:01:39Z
// Simple calculator grammar for Lemon
%token_type {int}

%left PLUS MINUS.
%left TIMES DIVIDE.

%syntax_error {
  fprintf(stderr,"Syntax error!\n");
}

program ::= expr(A). { printf("Result = %d\n", A); }

expr(A) ::= expr(B) PLUS expr(C). { A = B + C; }
expr(A) ::= expr(B) MINUS expr(C). { A = B - C; }
expr(A) ::= expr(B) TIMES expr(C). { A = B * C; }
expr(A) ::= expr(B) DIVIDE expr(C). {
  if(C != 0){
    A = B / C;
  }else{
    fprintf(stderr,"divide by zero\n");
  }
}
expr(A) ::= INTEGER(B). { A = B; }

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 Lemon (mapped to pl/lemon). 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/Lemon/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← lemick lemon-lang →