Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
D7050E_2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Söderberg
D7050E_2020
Commits
930db10d
Commit
930db10d
authored
Nov 11, 2020
by
David Söderberg
Browse files
Options
Downloads
Patches
Plain Diff
Update HOME_EXAM.md
parent
34672141
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
HOME_EXAM.md
+9
-3
9 additions, 3 deletions
HOME_EXAM.md
with
9 additions
and
3 deletions
HOME_EXAM.md
+
9
−
3
View file @
930db10d
...
...
@@ -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
r
ust
, including
##### Our syntax support the most basic subset of
R
ust
:
-
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment