Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST Namespace Reference

Abstract Syntax Tree (AST) namespace. More...

Classes

struct  Node
 AST Node. More...
struct  Expression
 Expression Node. More...
struct  Statement
 Statement Node. More...
struct  Program
 Program Node. More...
struct  TypeNode
 Type Node. More...
struct  NumberExpr
 Numeral Expression Node. More...
struct  StringExpr
 String Expression Node. More...
struct  IdentifierExpr
 Identifier Expression Node. More...
struct  BooleanExpr
 Boolean Expression Node. More...
struct  NullExpr
 NULL Expression Node. More...
struct  PostfixExpr
 Postfix Expression Node. More...
struct  UnaryExpr
 Unary Expression Node. More...
struct  BinaryExpr
 Binary Expression Node. More...
struct  ArrayAccessExpr
 Array Access Expression Node. More...
struct  ArrayLiteralExpr
 Array Literal Expression Node. More...
struct  MemberAccessExpr
 Member Access Expression Node. More...
struct  CallExpr
 Call Expression Node. More...
struct  AssignmentExpr
 Assignment Expression Node. More...
struct  VarDecl
 Variable Declaration Node. More...
struct  ExpressionStmt
 Expression Statement Node. More...
struct  PrintStmt
 Print Statement Node. More...
struct  ImportStmt
 Import Statement Node. More...
struct  ExportStmt
 Export Statement Node. More...
struct  BlockStmt
 Block Statement Node. More...
struct  ReturnStmt
 Return Statement Node. More...
struct  BreakStmt
 Break Statement Node. More...
struct  ContinueStmt
 Continue Statement Node. More...
struct  IfStmt
 If Statement Node. More...
struct  WhileStmt
 While Statement Node. More...
struct  ForStmt
 For Statement Node. More...
struct  UnsafeBlockStmt
 Unsafe Block Statement Node. More...
struct  FunctionDecl
 Function Declaration Node. More...
struct  StructField
 Struct Field Node. More...
struct  StructDecl
 Struct Declaration Node. More...
struct  StructInstanceExpr
 Struct Instance Expression Node. More...
struct  FieldAccessExpr
 Field Access Expression Node. More...
struct  CaseClause
 Case Clause Node. More...
struct  SwitchStmt
 Switch Statement Node. More...

Enumerations

enum class  UnaryOp { Negate , Not , AddressOf , Dereference }
 Unary operator types. More...
enum class  BinaryOp {
  Add , Subtract , Multiply , Divide ,
  Modulo , And , Or , Equal ,
  NotEqual , LessThan , GreaterThan , LessEqual ,
  GreaterEqual
}
 Binary operator types. More...
enum class  PostfixOp { Increment , Decrement }
 Postfix operator types. More...

Detailed Description

Abstract Syntax Tree (AST) namespace.

Enumeration Type Documentation

◆ BinaryOp

enum class Phasor::AST::BinaryOp
strong

Binary operator types.

Enumerator
Add 
Subtract 
Multiply 
Divide 
Modulo 
And 
Or 
Equal 
NotEqual 
LessThan 
GreaterThan 
LessEqual 
GreaterEqual 

Definition at line 139 of file AST.hpp.

◆ PostfixOp

enum class Phasor::AST::PostfixOp
strong

Postfix operator types.

Enumerator
Increment 
Decrement 

Definition at line 157 of file AST.hpp.

◆ UnaryOp

enum class Phasor::AST::UnaryOp
strong

Unary operator types.

Enumerator
Negate 
Not 
AddressOf 
Dereference 

Definition at line 130 of file AST.hpp.