2 # [inline <language> { code }]
4 # a partcl only command that should probably live in a loadable lib.
6 # Like eval, except that you must specify a registered compiler.
8 .HLL 'Tcl', 'tcl_group'
12 .param pmc argv :slurpy
17 if argc != 2 goto bad_args
19 .local string language,code
24 $P1 = compreg language
26 push_eh compiler_error
35 # First pass at RT#40748
37 get_results '0,0', $P1, $S1
38 $S1 = 'compile error: ' . $S1
42 get_results '0,0', $P1, $S1
43 $S1 = 'runtime error: ' . $S1
47 tcl_error 'wrong # args: should be "inline language code"'
50 $S0 = 'invalid language "'
60 # vim: expandtab shiftwidth=4 ft=pir: