Compare commits

..

No commits in common. "365807a365ffd720a423bd5c8244c1ce23f9e6c8" and "dfd21eb42da425e6ea23e0463f9d6605452f94c1" have entirely different histories.

View File

@ -29,8 +29,10 @@ pub fn parse(stack: &mut Stack, file_content: &str) {
arg = splited_data.get(0).unwrap().clone(); arg = splited_data.get(0).unwrap().clone();
} else if name.chars().nth(0) == Some('$') || name.chars().nth(1) == Some('$') { } else if name.chars().nth(0) == Some('$') || name.chars().nth(1) == Some('$') {
arg = command[1].clone(); arg = command[1].clone();
} else if let Ok(number) = command[1].parse::<i32>() { } else if command[1] == "-1" { // required for
data = number as u16; data = 65535; // _unix_random
} else if let Ok(number) = command[1].parse() {
data = number;
} else { } else {
eprintln!("{}", ParseError::ArgumentNotRequired(command[0].to_string(), i + 1, line.to_string())); eprintln!("{}", ParseError::ArgumentNotRequired(command[0].to_string(), i + 1, line.to_string()));
std::process::exit(2); std::process::exit(2);