mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
Updated to Vlang 0.3.3
This commit is contained in:
parent
86d897d580
commit
4c45648a79
5 changed files with 34 additions and 0 deletions
8
packages/vlang/0.3.3/build.sh
vendored
Normal file
8
packages/vlang/0.3.3/build.sh
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Cloning vlang source
|
||||
git clone https://github.com/vlang/v
|
||||
cd v
|
||||
|
||||
# Building and installing vlang
|
||||
make
|
4
packages/vlang/0.3.3/environment
vendored
Normal file
4
packages/vlang/0.3.3/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH="$PWD/v:$PATH"
|
5
packages/vlang/0.3.3/metadata.json
vendored
Normal file
5
packages/vlang/0.3.3/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "vlang",
|
||||
"version": "0.3.3",
|
||||
"aliases": ["v"]
|
||||
}
|
14
packages/vlang/0.3.3/run
vendored
Normal file
14
packages/vlang/0.3.3/run
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Export environment variables
|
||||
export VMODULES="$PWD"
|
||||
export TMPDIR="$PWD"
|
||||
|
||||
# Put instructions to run the runtime
|
||||
|
||||
filename=$1
|
||||
|
||||
rename 's/$/\.v/' $filename # Add .v extension
|
||||
|
||||
shift
|
||||
v run $filename.v "$@"
|
3
packages/vlang/0.3.3/test.v
vendored
Normal file
3
packages/vlang/0.3.3/test.v
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println('OK')
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue