parser : garde pour annuler un bug de parser dans la fonction des variables

This commit is contained in:
Ahurac 2024-04-19 11:05:52 +02:00
parent 8906ac7c70
commit 5fca142fea

View file

@ -14,6 +14,10 @@ fn parse_variable(characters: &mut Vec<char>, variables: &Variables) -> String {
current_char = characters.pop().unwrap();
}
if current_char.is_whitespace() {
characters.push(current_char);
}
variables.get(var_name.as_str())
}
}