(program: &str)
| 40 | /// @returns {Program} Program object |
| 41 | #[wasm_bindgen(js_name = "fromString")] |
| 42 | pub fn from_string(program: &str) -> Result<Program, String> { |
| 43 | Ok(Self(ProgramNative::from_str(program).map_err(|err| err.to_string())?)) |
| 44 | } |
| 45 | |
| 46 | /// Get a string representation of the program |
| 47 | /// |