0.3.0: Support putting /<var> directly after macros ()!! and ).. not supported at this time) to allow for putting macro values inside of variables automatically.
This commit is contained in:
parent
68cf76ab6d
commit
f75cabab83
3 changed files with 13 additions and 5 deletions
4
README
4
README
|
@ -14,10 +14,10 @@ Latest release and setup
|
||||||
----------------------------
|
----------------------------
|
||||||
Clone this repository to get the latest development version.
|
Clone this repository to get the latest development version.
|
||||||
|
|
||||||
Currently we are at version 0.2.3 of the software.
|
Currently we are at version 0.3.0 of the software.
|
||||||
|
|
||||||
If you'd like the point release (stable) version, run these commands below:
|
If you'd like the point release (stable) version, run these commands below:
|
||||||
git reset --hard 0.2.3
|
git reset --hard 0.3.0
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
If you want the latest development release, run these commands:
|
If you want the latest development release, run these commands:
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
<h2>Latest release and setup</h2>
|
<h2>Latest release and setup</h2>
|
||||||
<p>Clone this repository to get the latest development version.</p>
|
<p>Clone this repository to get the latest development version.</p>
|
||||||
|
|
||||||
<p>Currently we are at version 0.2.3 of the software.</p>
|
<p>Currently we are at version 0.3.0 of the software.</p>
|
||||||
|
|
||||||
<p>If you'd like the point release (stable) version, run these commands below:</p>
|
<p>If you'd like the point release (stable) version, run these commands below:</p>
|
||||||
<pre>git reset --hard 0.2.3
|
<pre>git reset --hard 0.3.0
|
||||||
|
|
||||||
cargo build --release</pre>
|
cargo build --release</pre>
|
||||||
|
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -97,6 +97,7 @@ fn load_macro(set: String, mac: String, inputs: String, vars: Vec<String>) -> St
|
||||||
}
|
}
|
||||||
|
|
||||||
if inputs.contains(")/") {
|
if inputs.contains(")/") {
|
||||||
|
println!("e");
|
||||||
let coolbeans: Vec<&str> = inputs.split(")/").collect();
|
let coolbeans: Vec<&str> = inputs.split(")/").collect();
|
||||||
let mut isin = false;
|
let mut isin = false;
|
||||||
let mut i: u8 = 0;
|
let mut i: u8 = 0;
|
||||||
|
@ -112,7 +113,14 @@ fn load_macro(set: String, mac: String, inputs: String, vars: Vec<String>) -> St
|
||||||
println!("ERROR: Reference to variable {} not assigned.", coolbeans[1]);
|
println!("ERROR: Reference to variable {} not assigned.", coolbeans[1]);
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
contents = format!("{} .{} STZ", contents, i.to_string());
|
let contunt: Vec<&str> = contents.split("\n").collect();
|
||||||
|
let mut contelt = "".to_string();
|
||||||
|
for x in contunt {
|
||||||
|
if x.len() > 2 {
|
||||||
|
contelt = format!("{}\n{} .{} STZ",contelt,x,i.to_string());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
contents = contelt.to_string();
|
||||||
}
|
}
|
||||||
return contents.to_string();
|
return contents.to_string();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue