Cadabra
Computer algebra system for field theory problems
CdbPython.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <string>
5 
6 namespace cadabra {
7 
8  std::string escape_quotes(const std::string&);
9 
10  // Convert a block of Cadabra notation into pure Python. Mimics
11  // the functionality in the python script 'cadabra2'
12 
13  std::string cdb2python(const std::string&);
14 
15  // As above, but for a single line; for private use only.
16 
17  std::string convert_line(const std::string&, std::string& lhs, std::string& rhs, std::string& op, std::string& indent);
18 
19  // Convert a Cadabra notebook file to pure Python. This gets
20  // called on-the-fly when importing Cadabra notebooks written by
21  // users, and at install time for all system-supplied packages.
22 
23  std::string cnb2python(const std::string&);
24 }
std::string cnb2python(const std::string &)
Definition: CdbPython.cc:170
std::string cdb2python(const std::string &)
Definition: CdbPython.cc:19
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Algorithm.cc:1030
Ex rhs(std::shared_ptr< Ex > ex)
Definition: PythonCdb.cc:190
std::string escape_quotes(const std::string &)
Definition: CdbPython.cc:10
Ex lhs(std::shared_ptr< Ex > ex)
Definition: PythonCdb.cc:178
std::string convert_line(const std::string &, std::string &lhs, std::string &rhs, std::string &op, std::string &indent)
Definition: CdbPython.cc:34