Update documentation
This commit is contained in:
parent
3f81104c99
commit
ccee457cf4
@ -12,6 +12,9 @@ by simplicity.
|
||||
Specifications and a bunch of [documentation for the language can be found
|
||||
here](./documentation/).
|
||||
|
||||
An example of a real whole program (a CPU pathtracer) can be found [in
|
||||
examples/cpu_raytracer.reid](./examples/cpu_raytracer.reid), go have a look!
|
||||
|
||||
Reid is currently able to (non-exhaustively):
|
||||
- Do basic algebra binary and unary-operations (e.g. Add, Sub, Div, Mult, And,
|
||||
Not)
|
||||
|
@ -27,7 +27,9 @@ in-depth, but when you're feeling up to it, you can read about them
|
||||
## Syntax and general information
|
||||
|
||||
Syntax for Reid is very much inspired by rust, and examples of the language can
|
||||
be found in the [examples](../examples/)-folder.
|
||||
be found in the [examples](../examples/)-folder. A larger example of a whole
|
||||
program written in Reid (a CPU Pathtracer) can be found [in
|
||||
examples/cpu_raytracer.reid](../examples/cpu_raytracer.reid).
|
||||
|
||||
In Reid **modules** (or files) on the top-level are comprised of imports, type
|
||||
definitions, binop-definitions, functions and type-associated function blocks.
|
||||
|
@ -1,6 +0,0 @@
|
||||
|
||||
pub fn main() -> u32 {
|
||||
let b = 4;
|
||||
let c = b + 4;
|
||||
return c;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
import std::String;
|
||||
import std::print;
|
||||
|
||||
fn main() {
|
||||
print(String::new() + "hello")
|
||||
}
|
Loading…
Reference in New Issue
Block a user