Vely is a programming language created in 2022.
#3087on PLDB | 2Years Old |
Vely is an embedded programming language with C as a host language. It's precompiled into C, creating a native executable.
void list_employees() {
out-header default
@<html><body>
char *header = make_header(); // write any C code
p-out header
// Create report in outmsg string and fill it with database query result
write-string define outmsg
// Get data from the database
run-query#get_emp@db="select name, salary from employees order by name" output name, salary
@Name: <<query-result#get_emp, name>>
@<br/>
@Salary: <<query-result#get_emp, salary>>
@<br/><br/>
end-query
end-write-string
// Write report to a file and then to the client
write-file "employees" from outmsg status define st
if (st<0) {
@Error in writing file (<<pf-out "%lld", st>>)
exit-request
} else {
p-out outmsg
}
@</body></html>
}