Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
CdbPython.hh
Go to the documentation of this file.
1
2#pragma once
3
4#include <string>
5
6namespace 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 public:
28 ConvertData(const std::string&, const std::string&, const std::string&, const std::string&);
29
30 std::string lhs, rhs, op, indent;
31 };
32
45
46 std::string convert_line(const std::string&, ConvertData& cv, bool display); //std::string& lhs, std::string& rhs, std::string& op, std::string& indent, bool display);
47
56
57 #ifndef CDBPYTHON_NO_NOTEBOOK
58
59 std::string cnb2python(const std::string&, bool for_standalone);
60
61 #endif
62 }
Object to store pre-parsing intermediate results.
Definition CdbPython.hh:25
std::string op
Definition CdbPython.hh:30
std::string lhs
Definition CdbPython.hh:30
std::string indent
Definition CdbPython.hh:30
ConvertData()
Definition CdbPython.cc:72
std::string rhs
Definition CdbPython.hh:30
std::string cnb2python(const std::string &, bool for_standalone)
Convert a Cadabra notebook file to pure Python.
Definition CdbPython.cc:232
std::string cdb2python(const std::string &, bool display)
Convert a block of Cadabra notation into pure Python.
Definition CdbPython.cc:22
std::string convert_line(const std::string &, ConvertData &cv, bool display)
Detect Cadabra expression statements and rewrite to Python form.
Definition CdbPython.cc:82
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
std::string escape_quotes(const std::string &)
Definition CdbPython.cc:14