diff options
author | dvs1 | 2024-10-28 13:38:02 +1000 |
---|---|---|
committer | dvs1 | 2024-10-28 13:38:02 +1000 |
commit | 515d421beae0668562a6005140b3461fdc2850fa (patch) | |
tree | f76bb2eb41890aac5649385e56ee53913dc25c93 /test_.lua | |
parent | Fix the PHP example. (diff) | |
download | JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.zip JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.tar.gz JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.tar.bz2 JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.tar.xz |
Hello -> G'day, coz I'm an Aussie, and it helps test embedded quote marks.
Diffstat (limited to 'test_.lua')
-rwxr-xr-x | test_.lua | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -96,7 +96,7 @@ print(__[[#!/bin/NoSuchCommand | |||
96 | print('') | 96 | print('') |
97 | 97 | ||
98 | __[[#!/bin/bash | 98 | __[[#!/bin/bash |
99 | echo "Hello world from bash." | 99 | echo "G'day world from bash." |
100 | ]]:log():show():Do() | 100 | ]]:log():show():Do() |
101 | print('') | 101 | print('') |
102 | 102 | ||
@@ -105,19 +105,19 @@ print(__[[#!/usr/bin/tcc -run | |||
105 | 105 | ||
106 | int main() | 106 | int main() |
107 | { | 107 | { |
108 | printf("Hello world from C.\n"); | 108 | printf("G'day world from C.\n"); |
109 | return 0; | 109 | return 1; |
110 | } | 110 | } |
111 | ]]:log():show():Do().status) | 111 | ]]:log():show():Do().status) |
112 | print('') | 112 | print('') |
113 | 113 | ||
114 | __[[#!/usr/bin/env luajit | 114 | __[[#!/usr/bin/env luajit |
115 | print('Hello ' .. "world " .. [=[from]=] .. ' Lua.') | 115 | print("G'day " .. "world " .. [=[from]=] .. ' Lua.') |
116 | ]]:log():show():Do() | 116 | ]]:log():show():Do() |
117 | print('') | 117 | print('') |
118 | 118 | ||
119 | __[[#!/usr/bin/perl | 119 | __[[#!/usr/bin/perl |
120 | print "Hello world from perl.\n"; | 120 | print "G'day world from perl.\n"; |
121 | ]]:log():show():Do() | 121 | ]]:log():show():Do() |
122 | print('') | 122 | print('') |
123 | 123 | ||
@@ -129,12 +129,12 @@ print('') | |||
129 | 129 | ||
130 | -- Note no indent for Python, coz whitespace is significant. | 130 | -- Note no indent for Python, coz whitespace is significant. |
131 | __[[#!/usr/bin/env python3 | 131 | __[[#!/usr/bin/env python3 |
132 | print("Hello world from python.") | 132 | print("G'day world from python.") |
133 | ]]:log():show():Do() | 133 | ]]:log():show():Do() |
134 | print('') | 134 | print('') |
135 | 135 | ||
136 | __[[#!/usr/bin/ruby | 136 | __[[#!/usr/bin/ruby |
137 | puts "Hello world from ruby." | 137 | puts "G'day world from ruby." |
138 | ]]:log():show():Do() | 138 | ]]:log():show():Do() |
139 | print('') | 139 | print('') |
140 | 140 | ||