creepsky / nexus Goto Github PK
View Code? Open in Web Editor NEWThe simple yet powerful system programming language
License: Apache License 2.0
The simple yet powerful system programming language
License: Apache License 2.0
Write unit tests for every statement and expression.
Ensure, that the components are parsed properly and the semantic check is working.
As last step, test the compiler and the output C++ source files.
Remove code issues listed on https://app.codacy.com/project/Creepsky/Nexus/dashboard.
Deduct the return value of a function whose return value is marked as auto
.
Deduct the auto type by examining the right hand side expression. No late bound deduction yet and also only for variables.
Because strings and arrays are primitives in Nexus, but not in C++, they need to be mapped to an #include.
For this, there should be a #include map, that maps a type to an #include line in the C++ code.
Every primitive has an predefined entry, classes that are compiled during a Nexus compilation, are also mapped dynamically.
Add an built in array slicing method.
A slice has this type: identifier [&] identifier
A slice literal has this format: expression[range literal]
Idea:
i32 [] test;
i32 var1 = test[0]; // element 0
i32 [&] vars = test[0..5]; // elements 0 to 4
i32 [&] vars = test[..]; // all elements
i32 [&] vars = test[..5]; // elements 0 to 4
i32 [&] vars = test[5..]; // elements 5 to end
A raw cpp statement is a block inside the Nexus code, that remains unparsed after compilation.
Idea:
int function() {
c++ {
const auto i = 0;
...
}
}
Deduct the auto type of late bound variables.
Example:
auto i;
auto j = 5;
auto x = 10;
i = j + x;
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.