Pegmatite
 All Classes Functions Variables Enumerations
Public Member Functions | List of all members
AST::Register Struct Referenceabstract

Abstract base class for all register types in the AST. More...

#include <ast.hh>

Inheritance diagram for AST::Register:
Inheritance graph
[legend]
Collaboration diagram for AST::Register:
Collaboration graph
[legend]

Public Member Functions

virtual uint16_t interpret (Interpreter::State &)=0
 Returns the value in this register (when interpreting the AST).
 
virtual void assign (Interpreter::State &, uint16_t)=0
 Assigns a value to the register (when interpreting the AST).
 
virtual llvm::Value * compile (Compiler::State &)=0
 Returns an LLVM value representing an access to this register (when compiling).
 
virtual void assign (Compiler::State &, llvm::Value *)=0
 Generates code for assigning the specified value to this register (when compiling).
 

Detailed Description

Abstract base class for all register types in the AST.

Definition at line 122 of file ast.hh.


The documentation for this struct was generated from the following file: