fix exp function

this is very cursed. I should really rewrite function parsing.
This commit is contained in:
Simon Gardling
2022-04-05 13:05:14 -04:00
parent 6f1d64ea02
commit 36f41ac473
4 changed files with 59 additions and 30 deletions

View File

@@ -53,7 +53,20 @@ fn generate_hashmap() {
.unwrap();
writeln!(&mut file, ";").unwrap();
write!(&mut file, "const MAX_COMPLETION_LEN: usize = {};", max_len).unwrap();
write!(
&mut file,
"const MAX_COMPLETION_LEN: usize = {};\n",
max_len
)
.unwrap();
write!(
&mut file,
"#[allow(dead_code)] pub const SUPPORTED_FUNCTIONS: [&str; {}] = {:?};",
SUPPORTED_FUNCTIONS.len(),
SUPPORTED_FUNCTIONS.to_vec()
)
.unwrap();
}
include!(concat!(