amath  1.8.5
Simple command line calculator
nodes.h File Reference

Top nodes in syntax trees. More...

#include "lib/numb.h"
#include "lib/charbuf.h"
Include dependency graph for nodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SyntaxNode
 Base class for all nodes in a syntax tree. More...
 
class  ExpressionNode
 Base class for all nodes related to mathematical expressions. More...
 
class  ErrorNode
 Represents an error message encapsulated in a syntax tree. More...
 
class  StatementBlockNode
 A sequence of statements in a syntax tree. More...
 
struct  StatementBlockElement
 Used to create a linked list of statements. More...
 

Enumerations

enum  NodeType { othernodetype, statement, expression }
 
enum  ReductionType {
  nonereduc, unaryreduc, valuereduc, compladdreduc,
  complsubreduc
}
 

Detailed Description

Top nodes in syntax trees.

Definition in file nodes.h.

Enumeration Type Documentation

◆ NodeType

enum NodeType
Enumerator
othernodetype 
statement 
expression 

Definition at line 42 of file nodes.h.

43 {
45  statement,
47 } NodeType;
NodeType
Definition: nodes.h:42

◆ ReductionType

Enumerator
nonereduc 
unaryreduc 
valuereduc 
compladdreduc 
complsubreduc 

Definition at line 49 of file nodes.h.

50 {
51  nonereduc,
52  unaryreduc,
53  valuereduc,
ReductionType
Definition: nodes.h:49