llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
#include <core/adt/sexp.h>
Classes | |
class | List |
Storage for lists. More... | |
class | Number |
Storage for numbers. More... | |
class | String |
Storage for strings. More... | |
Public Types | |
enum | Kind { NUMBER, STRING, LIST } |
Public Member Functions | |
SExp (int64_t v) | |
SExp (const std::string &v) | |
SExp (SExp &&that) | |
SExp (const SExp &that) | |
const Number * | AsNumber () const |
Returns the node as a number or nullptr. | |
Number * | AsNumber () |
Returns the node as a number or nullptr. | |
const String * | AsString () const |
Returns the node as a string or nullptr. | |
String * | AsString () |
Returns the node as a string or nullptr. | |
const List * | AsList () const |
Returns the node as a list or nullptr. | |
List * | AsList () |
Returns the node as a list or nullptr. | |
void | print (llvm::raw_ostream &os) const |
Print the s-expression. | |
S-Expression base.