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 
16 
17  std::string cdb2python(const std::string&, bool display);
18 
19  std::string cdb2python_string(const std::string&, bool display);
20 
26 
27  std::string convert_line(const std::string&, std::string& lhs, std::string& rhs, std::string& op, std::string& indent, bool display);
28 
37 
38  #ifndef CDBPYTHON_NO_NOTEBOOK
39 
40  std::string cnb2python(const std::string&, bool for_standalone);
41 
42  #endif
43  }
std::string convert_line(const std::string &, std::string &lhs, std::string &rhs, std::string &op, std::string &indent, bool display)
As above, but for a single line; for private use only.
Definition: CdbPython.cc:71
std::string cnb2python(const std::string &, bool for_standalone)
Convert a Cadabra notebook file to pure Python.
Definition: CdbPython.cc:215
std::string cdb2python(const std::string &, bool display)
Convert a block of Cadabra notation into pure Python.
Definition: CdbPython.cc:22
def display(obj, delay_send=False)
Generic display function which handles local as well as remote clients.
Definition: cadabra2_defaults.py:213
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
std::string cdb2python_string(const std::string &, bool display)
Definition: CdbPython.cc:56
Ex rhs(Ex_ptr ex)
Definition: py_ex.cc:375
std::string escape_quotes(const std::string &)
Definition: CdbPython.cc:14
Ex lhs(Ex_ptr ex)
Definition: py_ex.cc:363