Skip to content
Snippets Groups Projects
Commit 930db10d authored by David Söderberg's avatar David Söderberg
Browse files

Update HOME_EXAM.md

parent 34672141
No related branches found
No related tags found
No related merge requests found
......@@ -219,10 +219,16 @@ f func(x:i32, y:i32) -> i32 {
``` rust
lte a = 1;
```
```rust
let a = 0;
wihle a < 10 {
// do something
}
```
Mixed positions
``` rust
let x mut = false;
let a mut:i32 = 0;
```
Not yet implemented
......@@ -238,14 +244,14 @@ fn func(){
> - Compare your solution to the requirements (as stated in the README.md). What are your contributions to the implementation.
##### Our syntax support the most basic subset of rust, including
##### Our syntax support the most basic subset of Rust:
- Primitive types such as i32 and boolean
- Functions with the primitive return types
- let, if, if else, while, assign, return
- Precedence of operands by dividing them into arithmetic, conditional and logical operands.
- Possbility for ArCode (addition and subtraction) to have precedence over FactorCode(multiplication and division) by parenthesized precedence
##### Future implementation
##### Future implementation:
- Better error handling with location information
- More types
- Nestled functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment