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/beanshellWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | object-oriented · scripting |
|---|---|
| Typing | dynamic, strong |
| Designed by | JCP |
| First appeared | 1999 |
| Influenced by | Java · JavaScript · Perl |
| License | 2012: Apache-2.0 2001: SPL-1.0 or LGPL-2.1-only 1999: LGPL-2.1-only |
| Implemented in | Java |
| Homepage | https://github.com/beanshell/beanshell |
Related languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
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
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 );