Decaf Compiler
Public Attributes | List of all members
LiteralNode Struct Reference

AST literal expression structure. More...

#include <ast.h>

Public Attributes

DecafType type
 Literal type (discriminator/tag for the anonymous union)
 
union {
   int   integer
 Integer value (if type is INT)
 
   bool   boolean
 Boolean value (if type is BOOL)
 
   char   string [256]
 String value (if type is STR)
 
}; 
 

Detailed Description

AST literal expression structure.


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