mahanfr / nmet Goto Github PK
View Code? Open in Web Editor NEWA general purpose procedural and compiled programming language
Home Page: https://mahanfr.ir/Nmet/
License: MIT License
A general purpose procedural and compiled programming language
Home Page: https://mahanfr.ir/Nmet/
License: MIT License
Nice job!
I'm challenging myself to write something complex (E.g a ray-tracer) using your language (https://github.com/keyvank/mndgnmet)! Will probably contribute on Nmet itself too whenever I can!
I'm facing this issue:
import "./std/syscalls/file" :: syscall_open
func main() {
var O_CREAT @int = 0x00000100;
var O_EXCL @int = 0x00000200;
var O_WRONLY @int = 0x00000001;
var S_IRUSR @int = 0x00400;
var S_IWUSR @int = 0x00200;
syscall_open("file.txt", O_CREAT | O_EXCL | O_WRONLY,
S_IRUSR | S_IWUSR);
}
The code runs without any error (It doesn't create the file though, I may have given wrong flags)
But when I try to store the result of the syscall in a variable, I'm getting a segmentation fault:
import "./std/syscalls/file" :: syscall_open
func main() {
var O_CREAT @int = 0x00000100;
var O_EXCL @int = 0x00000200;
var O_WRONLY @int = 0x00000001;
var S_IRUSR @int = 0x00400;
var S_IWUSR @int = 0x00200;
var a = syscall_open("file.txt", O_CREAT | O_EXCL | O_WRONLY,
S_IRUSR | S_IWUSR);
}
I want to develop the std library. But in your examples I can't see the use of the library property. Does your programming language support the use of the library? If yes how can I use this feature?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.