llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Classes | Public Types | Public Member Functions | List of all members
SExp Class Reference

#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 NumberAsNumber () const
 Returns the node as a number or nullptr.
 
NumberAsNumber ()
 Returns the node as a number or nullptr.
 
const StringAsString () const
 Returns the node as a string or nullptr.
 
StringAsString ()
 Returns the node as a string or nullptr.
 
const ListAsList () const
 Returns the node as a list or nullptr.
 
ListAsList ()
 Returns the node as a list or nullptr.
 
void print (llvm::raw_ostream &os) const
 Print the s-expression.
 

Detailed Description

S-Expression base.


The documentation for this class was generated from the following files: