File: lua1.lua

package info (click to toggle)
dosbox-x 2026.01.02%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,220 kB
  • sloc: cpp: 341,269; ansic: 165,494; sh: 1,463; makefile: 967; perl: 385; python: 106; asm: 57
file content (30 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

function hello ()
  print("Hello world again\n")
end

print("Hello world\n")

a = 3
print(a)

a = a + 3
print(a)

function func1 (x)
    return x * 111
end

hello()

print(func1(1))
print(func1(2))
print(func1(7))

reg_c_function1()
reg_c_function2(42)
reg_c_function2("This is a string")
print(reg_c_function3())

print("That's all\n")