Skip to content

Commit

Permalink
Conditional and While Loop initial support (#586)
Browse files Browse the repository at this point in the history
This PR adds initial support for Conditional and While loops called at
the top level.

It also has a work around for `if __main__:` statements for a code2amr
bug

---------

Co-authored-by: Justin <[email protected]>
  • Loading branch information
Free-Quarks and Justin authored Oct 18, 2023
1 parent b315be0 commit 5496ff2
Show file tree
Hide file tree
Showing 2 changed files with 359 additions and 304 deletions.
4 changes: 2 additions & 2 deletions skema/skema-rs/skema/src/bin/morae.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() {

let host = "localhost";

//let math_content = module_id2mathml_MET_ast(module_id, host);
let math_content = module_id2mathml_MET_ast(module_id, host);

let input_src = "../../data/mml2pn_inputs/testing_eqns/sidarthe_mml.txt";

Expand All @@ -54,7 +54,7 @@ fn main() {
"\nAMR from mathml: {}\n",
serde_json::to_string(&PetriNet::from(odes)).unwrap()
);
//println!("\nAMR from code: {:?}", PetriNet::from(math_content));
println!("\nAMR from code: {:?}", PetriNet::from(math_content));
}
// This is the graph id for the top level function for the core dynamics for our test case.
else if new_args.arg == *"manual" {
Expand Down
Loading

0 comments on commit 5496ff2

Please sign in to comment.