Driven by data/frontends.json. The workbench chrome is frozen. Add a frontend there.
Frontends
Every frontend on the workbench. ISO GREEN is STANDARD GREEN whose issuing body is ISO/IEC, ANSI/INCITS, IEEE, ECMA (ISO-adopted), or NIST. STANDARD GREEN is issuing-body spec ∧ that body's executable suite skip=0. Homemade suites are CORE GREEN only. Named GAPs stay named.
Workbench Language notes Language stacks STANDARD GREEN
C ISO GREEN
ISO C11 subset. Frozen lexer in PANINI. Lowering and heap eval are host-speed (same slot as CINTERP). This is the kernel compiler path — the host C the rest lower into.
Suite: WG14 N1570 + c-testsuite single-exec 104. Workbench highlighting: Monaco language c. Errors surface in the diagnostics pane.
int main(void) {
return 40 + 2;
}
cpp (preprocessor) STANDARD GREEN
The preprocessor the kernel and gurucc already use. #define (object and function-like), #ifdef / #ifndef / #if / #else / #endif, #undef, stringizing, ##. Kernel .c files are cpp before cc.
Suite: N1570 translation phases 1–4 via CPP(). Workbench highlighting: Monaco language c. Errors surface in the diagnostics pane.
#define ANSWER 42
int main(void) { return ANSWER; }
C++ ISO GREEN
cpp.pni is frozen. Work is in cpplower.js. Named extract: enum1.C run + four dg-error files. Not libstdc++.
Suite: WG21 N4296 + g++.dg/expr named extract 5. Workbench highlighting: Monaco language cpp. Errors surface in the diagnostics pane.
int main() {
bool ok = true;
return ok ? 0 : 1;
}
Python STANDARD GREEN
Frozen PANINI frontend. STANDARD GREEN on self-contained CPython asserts. The workbench runs a host-speed def-main subset; Node uses python.pni.
Suite: CPython 3.12 Lib/test language extract 68. Workbench highlighting: Monaco language python. Errors surface in the diagnostics pane.
def main():
return 40 + 2
ECMAScript ISO GREEN
Test262 if/types/addition/unary/logical-not/subtraction. new Object and member assign are in the extract.
Suite: ECMA-262 + Test262 language extract 13. Workbench highlighting: Monaco language javascript. Errors surface in the diagnostics pane.
var x = 1 + 1;
if (x !== 2) throw new Test262Error('x');
TypeScript STANDARD GREEN
Types are stripped. unaryPlus executes; 2dArrays is compile-accept.
Suite: tsc v5.4.5 compiler unaryPlus + 2dArrays. Workbench highlighting: Monaco language typescript. Errors surface in the diagnostics pane.
var a = +1;
enum E { some, thing }
var c = +E.some;
Pascal ISO GREEN
Reject the official iso7185prt extract; accept hello.pas. Full PAT is GAP.
Suite: ISO 7185 via Pascal-P5 PRT reject + hello.pas. Workbench highlighting: Monaco language pascal. Errors surface in the diagnostics pane.
program hello;
begin
writeln('hello');
end.
BASIC / QB64 STANDARD GREEN
Not ECMA-116. Not VB.NET. Named QB64 Phoenix expression extract.
Suite: QB64pe tests/compile_tests/const/expression.bas 38. Workbench highlighting: Monaco language vb. Errors surface in the diagnostics pane.
CONST a = 1 + 2 * 3 PRINT a
Java STANDARD GREEN
Not Java™ branding. Compile-fail Parens + compile-accept LambdaConv01. @run main execute is GAP.
Suite: OpenJDK javac Parens1/2/3 fail + LambdaConv01 accept. Workbench highlighting: Monaco language java. Errors surface in the diagnostics pane.
class T { void f() { int i = 1; } }
Smalltalk STANDARD GREEN
// floor-div, \\\\ remainder, 2r/8r/16r bases. LargeIntegers / factorial GAP.
Suite: GNU Smalltalk tests/intmath.st Eval before LargeIntegers 31. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
Eval [ 3 + 4 ] Eval [ 12 // 5 ]
Haskell STANDARD GREEN
where-bindings flattened. Type signatures ignored.
Suite: GHC codeGen should_run cgrun001/002/005. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
main = print (1 + 2 + 32767 - 4)
Common Lisp ISO GREEN
ANSI INCITS 226 named extract. languages/lisp.pni is museum.
Suite: ansi-test self-contained deftest 19. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
(+ 40 2)
Prolog ISO GREEN
ISO/IEC 13211-1 arithmetic extract. bagof/setof/IO GAP.
Suite: Ciao iso_tests ISO 8.6/8.7 arith 23. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
X is 1+2.
Fortran ISO GREEN
STANDARD GREEN / ISO GREEN on named gfortran.fortran-torture integer execute (emptyif, arithmeticif). Formatted WRITE/REAL is GAP.
Suite: ISO/IEC 1539 + gfortran.fortran-torture emptyif + arithmeticif (2). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
PROGRAM P INTEGER :: N N = 0 STOP 0 END PROGRAM
Go STANDARD GREEN
STANDARD GREEN on official test/helloworld.go { // run }. all.bash GAP.
Suite: Go spec + gc test/helloworld.go { // run }. Workbench highlighting: Monaco language go. Errors surface in the diagnostics pane.
package main
func main() { return 0 }
Rust STANDARD GREEN
STANDARD GREEN on rustc ui hello.rs run-pass. Full rustc ui GAP.
Suite: Rust Reference + rustc tests/ui/hello.rs run-pass. Workbench highlighting: Monaco language rust. Errors surface in the diagnostics pane.
fn main() -> i32 { 0 }
Julia STANDARD GREEN
STANDARD GREEN on intfuncs.jl gcd extract. Full test/ GAP.
Suite: Julia test/intfuncs.jl gcd integer extract (9). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
function main()
return 0
end
Lua STANDARD GREEN
STANDARD GREEN on lua.org constructs.lua integer-assert extract (9). Full testes/ GAP.
Suite: lua.org 5.4.7 testes/constructs.lua integer assert extract (9). Workbench highlighting: Monaco language lua. Errors surface in the diagnostics pane.
function add(a, b) return a + b end assert(1 + 1 == 2) print(add(40, 2))
Zig STANDARD GREEN
STANDARD GREEN on official hello.zig writeAll run. Full behavior/ GAP.
Suite: zig test/standalone/hello_world/hello.zig run. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
pub fn main() i32 { return 0; }
Make STANDARD GREEN
POSIX/GNU make tokens the kernel build uses: VAR=, ?=, +=, target: deps, tab recipes, $(VAR), $@, $<, $^, ifeq/ifdef, include, obj-y. Not GNU make itself. Not full kbuild.
Suite: GNU make manual Setting Variables / echo / deps. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
FOO = bar all: a echo $(FOO) a: echo a
GNU as STANDARD GREEN
AT&T integer subset for kernel .s files. movl/addl/xorl/cmpl/jcc/push/pop/call/ret, directives .globl .text .type .size. Tokens first. Not ld, not ELF.
Suite: gas integer mov/add/ret + comment.s class. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
.text
.globl main
main:
movl $42, %eax
ret
Kconfig STANDARD GREEN
Kconfig is how the kernel is configured. Tokens: config, menuconfig, bool, tristate, string, int, hex, default, depends on, select, help, menu, source. Eval applies default y/n.
Suite: Linux Kconfig language named extract (config/bool/default). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
config PANINI bool "Panini kernel token" default y depends on EXPERT
GNU ld (script) STANDARD GREEN
Linker scripts the kernel uses (vmlinux.lds.S class). Tokens: ENTRY, SECTIONS, MEMORY, KEEP, ALIGN, PROVIDE, OUTPUT_FORMAT. Not a linker — tokens + structure, which is what the architect asked for.
Suite: GNU ld script tokens (ENTRY / SECTIONS). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
ENTRY(main)
SECTIONS {
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss) }
}
Scheme ISO GREEN
STANDARD GREEN / ISO GREEN (IEEE 1178) on chibi r5rs-tests.scm integer extract. Full R5RS GAP.
Suite: IEEE 1178 / R5RS + chibi r5rs-tests.scm integer (test) extract (26). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
(define (add a b) (+ a b)) (add 40 2)
Forth ISO GREEN
STANDARD GREEN / ISO GREEN (ANSI Forth) on core.fr T{ integer extract. HEX/DOUBLE GAP.
Suite: ANSI X3.215 / Forth-2012 Johns Hopkins core.fr T{ integer (42). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
: ADD + ; 40 2 ADD .
OCaml STANDARD GREEN
STANDARD GREEN on equality.ml integer compare. Strings/floats/lists GAP.
Suite: OCaml testsuite equality.ml integer compare extract (3). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
let add a b = a + b let () = print_int (add 40 2)
Clojure STANDARD GREEN
STANDARD GREEN on numbers.clj integer + extract. Full test_clojure GAP.
Suite: Clojure numbers.clj (+ N M) extract (4). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
(defn add [a b] (+ a b)) (add 40 2)
Logo (Robot) STANDARD GREEN
STANDARD GREEN on UCBLogo UnitTests.lg compile-accept + ROBOT.C cardinals. Full UCBLogo tests GAP. No ISO Logo.
Suite: UCBLogo UnitTests.lg InstallSuite/RunTests compile-accept. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
REPEAT 4 [ FORWARD 80 RIGHT 90 ]
lex ISO GREEN
STANDARD GREEN / ISO GREEN (POSIX) on flex wc1.l. Full flex tests/ GAP.
Suite: POSIX lex / flex examples/fastwc/wc1.l compile-accept. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
%%
"a"a+"a" {printf("O");}
ab+a {printf("ab*a");}
%%
yacc ISO GREEN
STANDARD GREEN / ISO GREEN (POSIX) on bison calc.y. Full bison tests/ GAP.
Suite: POSIX yacc / bison examples/c/calc/calc.y compile-accept. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
expr : expr '+' expr { $$ = $1 + $3; }
| 1+2*3
;
PANINI STANDARD GREEN
The language itself. Browser runs the integer core. Node self-host is a fixed point on 36 functions. Blocks close with END.
Suite: Stage-0 integer FUNCTION/IF/RETURN/PRINT. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
FUNCTION main()
PRINT 40 + 2
RETURN 42
END
C# ISO GREEN
STANDARD GREEN / ISO GREEN on named Mono mcs/tests/test-1.cs. Not roslyn. Full ECMA-334 GAP.
Suite: ECMA-334 / ISO/IEC 23270 + Mono mcs/tests/test-1.cs. Workbench highlighting: Monaco language csharp. Errors surface in the diagnostics pane.
using System;
class Program {
static int Main() {
int n = 40 + 2;
Console.WriteLine(n);
return n;
}
}
Kotlin STANDARD GREEN
STANDARD GREEN on NumbersTest.kt Int min/max extract. Long/overflow GAP. Not kotlinc.
Suite: Kotlin NumbersTest.kt Int.MIN/MAX + one (4). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
fun add(a: Int, b: Int): Int {
return a + b
}
fun main(): Int {
val n = add(40, 2)
println(n)
return n
}
Swift STANDARD GREEN
STANDARD GREEN on IntegerDiagnostics reject + simple.swift run. Not Apple Swift™. Full stdlib GAP.
Suite: Swift IntegerDiagnostics expected-error + simple.swift run (2). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
func add(a: Int, b: Int) -> Int {
return a + b
}
func main() -> Int {
let n = add(40, 2)
print(n)
return n
}
Scala STANDARD GREEN
STANDARD GREEN on t0005.scala compile-accept. unapply/match execute GAP. Full scalac GAP.
Suite: Scala t0005.scala def main compile-accept. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
object P {
def add(a: Int, b: Int): Int = a + b
def main(args: Array[String]): Int = {
val n = add(40, 2)
println(n)
return n
}
}
Dart STANDARD GREEN
STANDARD GREEN on operator_test.dart i1/i2 integer extract. Operator-overload GAP.
Suite: Dart operator_test.dart i1/i2 Expect.equals integer extract. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
int add(int a, int b) {
return a + b;
}
int main() {
var n = add(40, 2);
print(n);
return n;
}
Ada ISO GREEN
STANDARD GREEN / ISO GREEN on ACATS C45411A unary +/− INTEGER. Full ACATS GAP. Not GNAT.
Suite: ISO/IEC 8652 ACATS C45411A unary +/− INTEGER (1). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
function Main return Integer is N : Integer := 40 + 2; begin return N; end Main;
Ruby ISO GREEN
STANDARD GREEN / ISO GREEN on MRI/RubySpec integer extract. Full bootstraptest GAP.
Suite: ISO/IEC 30170 + MRI test_literal.rb + ruby/spec Integer#+ (3). Workbench highlighting: Monaco language ruby. Errors surface in the diagnostics pane.
def add(a, b) a + b end puts add(40, 2)
Perl STANDARD GREEN
STANDARD GREEN on official t/base/if.t. t/op GAP.
Suite: Perl 5 t/base/if.t TAP eq/ne (2). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
sub add {
my ($a, $b) = @_;
return $a + $b;
}
print add(40, 2);
PHP STANDARD GREEN
STANDARD GREEN on php-src tests/lang named extract (4). Zend arrays/objects GAP.
Suite: php-src tests/lang/{001,002,004,010}.phpt FILE vs EXPECT. Workbench highlighting: Monaco language php. Errors surface in the diagnostics pane.
R STANDARD GREEN
STANDARD GREEN on GNU R simple-true.R integer extract. lowess/float GAP. Not MATLAB.
Suite: GNU R simple-true.R 1:12 cumsum + typeof integer L (5). Workbench highlighting: Monaco language r. Errors surface in the diagnostics pane.
add <- function(a, b) { a + b }
print(add(40, 2))
COBOL ISO GREEN
STANDARD GREEN / ISO GREEN on GnuCOBOL DISPLAY-literals extract. NIST COBOL85 full GAP.
Suite: ISO/IEC 1989 + GnuCOBOL run_fundamental.at DISPLAY literals (1). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
IDENTIFICATION DIVISION.
PROGRAM-ID. ADDN.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 N PIC 9(4) VALUE 40.
PROCEDURE DIVISION.
COMPUTE N = N + 2
DISPLAY N
STOP RUN.
SQL ISO GREEN
STANDARD GREEN / ISO GREEN on postgres int4.sql integer SELECT extract. Tables/overflow GAP.
Suite: ISO/IEC 9075 + PostgreSQL int4.sql integer SELECT AS (7). Workbench highlighting: Monaco language sql. Errors surface in the diagnostics pane.
CREATE TABLE t (n INT); INSERT INTO t VALUES (40); SELECT n + 2 FROM t;
GNU Octave STANDARD GREEN
STANDARD GREEN on GNU Octave factorial.m integer %!assert. Not MATLAB. Full fntests GAP.
Suite: GNU Octave factorial.m %!assert (factorial (0), 1). Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
function r = add(a, b) r = a + b; end function r = main() n = add(40, 2); disp(n); r = n; end
SysML STANDARD GREEN
STANDARD GREEN on SysML v2 CommentTest. ISO 19514 is SysML 1.x. Model checker GAP.
Suite: OMG SysML v2 CommentTest.sysml package/part compile-accept. Workbench highlighting: Monaco language plaintext. Errors surface in the diagnostics pane.
package Demo {
part def Motor {
attribute power : Integer = 40;
}
constraint def Add { 40 + 2 }
}