Jump to content

Multiline shebang: Difference between revisions

→‎{{header|Nim}}: Rescued OCaml entry which had become tangled up with Nim.
m (added whitespace before the TOC.)
(→‎{{header|Nim}}: Rescued OCaml entry which had become tangled up with Nim.)
Line 389:
In Nim, multiline comments start with <code>#[</code> and end with <code>]#</code>. This allows to build a polyglot program which can be run as a shell script and compiled as a Nim program.
 
<Langlang Nim>#!/bin/bash
#[
echo Put here code to run as a shell script.
Line 396:
 
# Nim program
echo "Executing Nim program"</lang>
 
=={{header|OCaml}}==
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.