mirror of
https://github.com/Noratrieb/crapderive.git
synced 2026-01-14 16:45:08 +01:00
doooc
This commit is contained in:
parent
1d56ed5dac
commit
be1305bbb8
5 changed files with 32 additions and 52 deletions
|
|
@ -3,40 +3,10 @@
|
|||
|
||||
== Deployment View
|
||||
|
||||
The code is available on GitHub (https://github.com/Nilstrieb/crapderive). The user will have to clone it and build it themselves.
|
||||
|
||||
To build and install crapderive, they can run the following command if they have Rust installed:
|
||||
`cargo install --git https://github.com/Nilstrieb/crapderive`.
|
||||
|
||||
=== Infrastructure Level 1
|
||||
|
||||
|
||||
|
||||
_**<Overview Diagram>**_
|
||||
|
||||
Motivation::
|
||||
|
||||
_<explanation in text form>_
|
||||
|
||||
Quality and/or Performance Features::
|
||||
|
||||
_<explanation in text form>_
|
||||
|
||||
Mapping of Building Blocks to Infrastructure::
|
||||
_<description of the mapping>_
|
||||
|
||||
|
||||
=== Infrastructure Level 2
|
||||
|
||||
|
||||
|
||||
==== _<Infrastructure Element 1>_
|
||||
|
||||
_<diagram + explanation>_
|
||||
|
||||
==== _<Infrastructure Element 2>_
|
||||
|
||||
_<diagram + explanation>_
|
||||
|
||||
...
|
||||
|
||||
==== _<Infrastructure Element n>_
|
||||
|
||||
_<diagram + explanation>_
|
||||
=== Installing Rust
|
||||
To install Rust, visit https://www.rust-lang.org/tools/install.
|
||||
|
|
@ -1,3 +1,26 @@
|
|||
[[section-technical-risks]]
|
||||
== Risks and Technical Debts
|
||||
|
||||
=== Cannot do IO
|
||||
|
||||
Due to time constraints, IO features might not be implemented.
|
||||
|
||||
==== Mitigations
|
||||
|
||||
Don't tell anyone.
|
||||
|
||||
==== Avoidance
|
||||
|
||||
Prioritize IO features highly.
|
||||
|
||||
=== The interpreter won't compile
|
||||
|
||||
The Rust compiler is very strict, making to possible for the interpreter to not compile.
|
||||
|
||||
==== Mitigations
|
||||
|
||||
Comment out the offending code. In the worse case, abuse https://github.com/rust-lang/rust/issues/98608.
|
||||
|
||||
==== Avoidance
|
||||
|
||||
Don't write code that doesn't compile. Follow the Rust borrowing rules.
|
||||
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
use std::io::{Read, Write};
|
||||
|
||||
use logos::Span;
|
||||
|
||||
use crate::{
|
||||
error::Result,
|
||||
ir::{Place, Register, Stmt, Value},
|
||||
|
|
|
|||
|
|
@ -62,17 +62,6 @@ impl DebugPls for Stmt {
|
|||
}
|
||||
}
|
||||
|
||||
struct Testln {
|
||||
field: (),
|
||||
hallo: std::path::Path,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Testl {
|
||||
fn fmt(&self, f: std::fmt::Formatter<'_> {
|
||||
f.write_str("Testln")
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, DebugPls)]
|
||||
pub enum StmtKind {
|
||||
Mov { to: Expr, from: Expr },
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ Ok(
|
|||
Stmt {
|
||||
kind: Je {
|
||||
to: Expr {
|
||||
kind: Name(
|
||||
kind: Symbol(
|
||||
"true",
|
||||
),
|
||||
span: 24..28,
|
||||
|
|
@ -52,7 +52,7 @@ Ok(
|
|||
Stmt {
|
||||
kind: Jmp {
|
||||
to: Expr {
|
||||
kind: Name(
|
||||
kind: Symbol(
|
||||
"false",
|
||||
),
|
||||
span: 33..38,
|
||||
|
|
@ -69,7 +69,7 @@ Ok(
|
|||
Stmt {
|
||||
kind: Jmp {
|
||||
to: Expr {
|
||||
kind: Name(
|
||||
kind: Symbol(
|
||||
"exit",
|
||||
),
|
||||
span: 49..53,
|
||||
|
|
@ -108,7 +108,7 @@ Ok(
|
|||
Stmt {
|
||||
kind: Jmp {
|
||||
to: Expr {
|
||||
kind: Name(
|
||||
kind: Symbol(
|
||||
"false",
|
||||
),
|
||||
span: 86..91,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue