Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Create obratnaya.toml #153

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions languages/obratnaya.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name = "obratnaya"
entrypoint = "main.oba"
extensions = [
"stk"
]
aptKeys = ["3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"]
aptRepos = [
"deb https://download.mono-project.com/repo/ubuntu stable-bionic main"
]
packages = [
"mono-complete"
]
setup = [
"cd /tmp",
"wget https://repl.it/@obratnaya/Obratnaya.zip",
"unzip Obratnaya.zip \"obrya.exe\" \"lib/*\"",
"mv obrya.exe /usr/bin/obrya.exe",
"mv lib/* /usr/bin/",
"rm -rf Obratnaya.zip"
]

[run]
command = [
"mono",
"/usr/bin/obrya.exe",
"main.oba"
]

[tests]

[tests.hello]
code = ".data:\n .text hello\n.main:\n mov 0,@\n msg @\n cr\n lf\n ret"
output = "hello\r\n"