BeanShell

1 program Added 2025-10-30T17:53:28Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: bsh
Provenance: commit 0fe97c3a9f · authored 2025-10-30T18:53:28+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

4 sources · pl_id: pl/beanshell
LLM (this repo) · 1PldbWikipediaWikidata · Q812964

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsobject-oriented · scripting
Typingdynamic, strong
Designed byJCP
First appeared1999
Influenced byJava · JavaScript · Perl
License2012: Apache-2.0 2001: SPL-1.0 or LGPL-2.1-only 1999: LGPL-2.1-only
Implemented inJava
Homepagehttps://github.com/beanshell/beanshell

Related languages

KornShell (0.30)Ksh (0.29)C Shell (0.27)Nushell (0.27)Bean (0.24)

LLM-contributed programs

Point Class Definition and Usage

Provenance: commit 0fe97c3a9f · authored 2025-10-30T18:53:28+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.bsh · added: 2025-10-30T17:53:28Z
public class Point {
  int x, y;
  public Point( int x, int y ) {
    this.x = x;
    this.y = y;
  }
  public String toString() {
    return "(" + x + ", " + y + ")";
  }
}

// Create a point
Point p = new Point( 7, 42 );

// Print it
print( p );

// Modify an instance variable
p.x = 9;

// Print it again
print( p );

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 BeanShell (mapped to pl/beanshell). 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/BeanShell/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Bean Bear →