diff --git a/doc/src/07_deployment_view.adoc b/doc/src/07_deployment_view.adoc index 4c339e3..b72056f 100644 --- a/doc/src/07_deployment_view.adoc +++ b/doc/src/07_deployment_view.adoc @@ -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 - - - -_****_ - -Motivation:: - -__ - -Quality and/or Performance Features:: - -__ - -Mapping of Building Blocks to Infrastructure:: -__ - - -=== Infrastructure Level 2 - - - -==== __ - -__ - -==== __ - -__ - -... - -==== __ - -__ +=== Installing Rust +To install Rust, visit https://www.rust-lang.org/tools/install. \ No newline at end of file diff --git a/doc/src/11_technical_risks.adoc b/doc/src/11_technical_risks.adoc index 1e0bfcc..77c0bc3 100644 --- a/doc/src/11_technical_risks.adoc +++ b/doc/src/11_technical_risks.adoc @@ -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. \ No newline at end of file diff --git a/src/interpret.rs b/src/interpret.rs index 94a0a4c..1f501a4 100644 --- a/src/interpret.rs +++ b/src/interpret.rs @@ -11,8 +11,6 @@ use std::io::{Read, Write}; -use logos::Span; - use crate::{ error::Result, ir::{Place, Register, Stmt, Value}, diff --git a/src/parser.rs b/src/parser.rs index de8770d..28c2c5e 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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 }, diff --git a/src/snapshots/asm_thing__parser__tests__program.snap b/src/snapshots/asm_thing__parser__tests__program.snap index 058576b..3bb86e1 100644 --- a/src/snapshots/asm_thing__parser__tests__program.snap +++ b/src/snapshots/asm_thing__parser__tests__program.snap @@ -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,