Update for new API

This commit is contained in:
Vrganj 2021-01-23 21:31:23 +01:00
commit c10a30b69a
78 changed files with 2063 additions and 868 deletions

1
lxc/tests/awk.awk Normal file
View file

@ -0,0 +1 @@
{ print "good" }

1
lxc/tests/jelly.jelly Normal file
View file

@ -0,0 +1 @@
³

3
lxc/tests/kotlin.kt Normal file
View file

@ -0,0 +1,3 @@
fun main() {
println("good")
}

18
lxc/tests/nasm64.nasm Normal file
View file

@ -0,0 +1,18 @@
SECTION .data
good: db "good", 0x0
txtlen: equ $ - good
SECTION .text
GLOBAL _start
_start:
;sys_write
mov rax, 1
mov rdi, 1
mov rsi, good
mov rdx, txtlen
syscall
;sys_exit
mov rax, 60
mov rdi, 0
syscall

11
lxc/tests/paradoc.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# add paradoc module to python python
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
# file for test code
test_code=/tmp/paradoc.test
# save test code to file
echo -n iP>$test_code
# pass param to paradoc module and have it print it
echo good | python3.8 -m paradoc $test_code
# clean test code
rm -f $test_code

View file

@ -1,3 +0,0 @@
good
___code___
{ print }

View file

@ -1,3 +0,0 @@
fun main(args: Array<String>) {
println("good")
}

View file

@ -1,18 +0,0 @@
SECTION .data
good: db "good", 0x0a, 0x0
txtlen: equ $ - good
SECTION .text
GLOBAL _start
_start:
;sys_write
mov rax, 1
mov rdi, 1
mov rsi, good
mov rdx, txtlen
syscall
;sys_exit
mov rax, 60
mov rdi, 0
syscall

View file

@ -1,5 +0,0 @@
try:
import paradoc
print('good')
except:
pass