Skip to content

Colorized General MeTTa-run formatter #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 23, 2024

Conversation

Amanuel-1
Copy link
Contributor

this pr contains the following changes

  • generalized output formatter for metta-run
  • formatted exception handling

let mut indent_level = 0;
let (metta_err, metta_str) = metta_output;

// println!("this is working ++++++++++++++++++++++++++++++++ {}",);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line

// println!("this is working ++++++++++++++++++++++++++++++++ {}",);

@@ -1,2 +1,39 @@
!(TreeNode (Value Nil False ROOT) Nil (Cons NilNode (Cons (TreeNode (Value Nil True OR) Nil (Cons (TreeNode (Value a False LITERAL) Nil Nil) (Cons (TreeNode (Value Nil True AND) Nil (Cons (TreeNode (Value b False LITERAL) Nil Nil) (Cons (TreeNode (Value c False LITERAL) Nil Nil) Nil))) Nil))) Nil)))
!(assertEqualToResult 3 (+ 1 2) )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove all changes

@ishaksebsib ishaksebsib merged commit 5f9de2b into iCog-Labs-Dev:main Aug 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants