libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Public Types | Data Fields
ps_node Struct Reference

AST nodes are represented with tagged unions. More...

#include <ast.h>

Public Types

enum  ps_node_type
 

Data Fields

enum ps_node::ps_node_type type
 
union { 
 
   struct ps_node_let   let 
 
   struct ps_node_fn   fn 
 
   struct ps_node_import   import 
 
   struct ps_node_extern   extern_ 
 
   struct ps_node_expr_stm   expr_stm 
 
   struct ps_node_block *   block 
 
   struct ps_node_struct   struct_ 
 
   struct ps_node_enum   enum_ 
 
   struct ps_node_for   for_ 
 
   struct ps_node_while   while_ 
 
   struct ps_node_if   if_ 
 
   struct ps_node_return   return_ 
 
value 
 

Detailed Description

AST nodes are represented with tagged unions.

Definition at line 206 of file ast.h.

Member Enumeration Documentation

◆ ps_node_type

Definition at line 207 of file ast.h.

Field Documentation

◆ block

struct ps_node_block* ps_node::block

Definition at line 218 of file ast.h.

◆ enum_

struct ps_node_enum ps_node::enum_

Definition at line 221 of file ast.h.

◆ expr_stm

struct ps_node_expr_stm ps_node::expr_stm

Definition at line 217 of file ast.h.

◆ extern_

struct ps_node_extern ps_node::extern_

Definition at line 216 of file ast.h.

◆ fn

struct ps_node_fn ps_node::fn

Definition at line 214 of file ast.h.

◆ for_

struct ps_node_for ps_node::for_

Definition at line 222 of file ast.h.

◆ if_

struct ps_node_if ps_node::if_

Definition at line 224 of file ast.h.

◆ import

struct ps_node_import ps_node::import

Definition at line 215 of file ast.h.

◆ let

struct ps_node_let ps_node::let

Definition at line 213 of file ast.h.

◆ return_

struct ps_node_return ps_node::return_

Definition at line 225 of file ast.h.

◆ struct_

struct ps_node_struct ps_node::struct_

Definition at line 220 of file ast.h.

◆ type

enum ps_node::ps_node_type ps_node::type

◆ [union]

union { ... } ps_node::value

◆ while_

struct ps_node_while ps_node::while_

Definition at line 223 of file ast.h.


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