Merge pull request #137 from crhallberg/vlang

Add V (vlang)
This commit is contained in:
Radon Rosborough 2021-12-23 19:17:29 -08:00 committed by GitHub
commit ecd0aab5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 1 deletions

60
langs/v.yaml Normal file
View File

@ -0,0 +1,60 @@
id: "v"
aliases:
- "vlang"
name: "V"
info:
year: 2019
desc: "Simple, statically-typed compiled programming language designed for building maintainable software"
ext:
- v
web:
home: "https://vlang.io/"
source: "https://github.com/vlang/v"
category: general
mode: compiled
platform: clr
syntax:
- c
typing:
- static
paradigm:
- functional
- imperative
usage: personal
install:
manual: |
install -d "${pkg}/opt"
install -d "${pkg}/usr/local/bin"
git clone https://github.com/vlang/v.git "${pkg}/opt/v"
pushd "${pkg}/opt/v"
make
ln -s /opt/v/v "${pkg}/usr/local/bin/"
# Force vfmt to get compiled ahead of time, otherwise this will
# happen at first invocation and fail due to lack of write
# permissions on /opt/v.
./v fmt < /dev/null
popd
main: "main.v"
template: |
fn main() {
println('Hello, world!')
}
run: |
v run main.v
format:
run: |
v fmt main.v
input: |
fn main()
{
println("Hello, world!")
}

View File

@ -2,7 +2,6 @@ id: "verilog"
aliases:
- "systemverilog"
- "iverilog"
- "v"
name: "Verilog"
install: