Pegmatite
 All Classes Functions Variables Enumerations
Public Member Functions | Public Attributes | List of all members
AST::Literal Struct Reference

A (number) literal. More...

#include <ast.hh>

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

Public Member Functions

virtual uint16_t interpret (Interpreter::State &) override
 Interpret this node, updating the given interpreter step and returning the value (if there is one).
 
virtual void construct (const pegmatite::InputRange &r, pegmatite::ASTStack &st) override
 
virtual llvm::Value * compile (Compiler::State &) override
 Compile this node, returning the LLVM value representing the result, if there is one.
 

Public Attributes

uint16_t value
 The value for this literal.
 

Detailed Description

A (number) literal.

This is a constant value.

Definition at line 107 of file ast.hh.


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