Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Irony.Interpreter.Ast.AstNode Class Reference
Inheritance diagram for Irony.Interpreter.Ast.AstNode:
Irony.Parsing.IAstNodeInit Irony.Parsing.IBrowsableAstNode Irony.Parsing.IVisitableNode Irony.Interpreter.Ast.IInterpretedAstNode Irony.Interpreter.Ast.AssignmentNode Irony.Interpreter.Ast.BinaryOperationNode Irony.Interpreter.Ast.EmptyStatementNode Irony.Interpreter.Ast.ExpressionListNode Irony.Interpreter.Ast.FunctionCallNode Irony.Interpreter.Ast.FunctionDefNode Irony.Interpreter.Ast.IdentifierNode Irony.Interpreter.Ast.IfNode Irony.Interpreter.Ast.IncDecNode Irony.Interpreter.Ast.LiteralValueNode Irony.Interpreter.Ast.NotSupportedNode Irony.Interpreter.Ast.NullNode Irony.Interpreter.Ast.ParamListNode Irony.Interpreter.Ast.StatementListNode Irony.Interpreter.Ast.StringTemplateNode Irony.Interpreter.Ast.UnaryOperationNode

Public Member Functions

 AstNode ()
 
virtual void Init (ParsingContext context, ParseTreeNode treeNode)
 
virtual void Evaluate (EvaluationContext context, AstMode mode)
 
virtual SourceLocation GetErrorAnchor ()
 
virtual void EvaluateNode (EvaluationContext context, AstMode mode)
 
virtual
System.Collections.IEnumerable 
GetChildNodes ()
 
void SetParent (AstNode parent)
 
bool FlagIsSet (AstNodeFlags flag)
 
override string ToString ()
 
virtual void AcceptVisitor (IAstVisitor visitor)
 
IEnumerable< AstNodeGetAll ()
 

Public Attributes

AstNode Parent
 
BnfTerm Term
 
SourceSpan Span
 
AstNodeFlags Flags
 
string Role
 
readonly AstNodeList ChildNodes = new AstNodeList()
 

Protected Member Functions

AstNode AddChild (string role, ParseTreeNode childParseNode)
 
void InvalidAstMode (string mode)
 

Protected Attributes

NodeEvaluate EvaluateRef
 
SourceLocation ErrorAnchor
 

Properties

SourceLocation Location [get]
 
string AsString [get, set]
 
- Properties inherited from Irony.Parsing.IBrowsableAstNode
SourceLocation Location [get]
 

Detailed Description

Definition at line 36 of file AstNode.cs.

Constructor & Destructor Documentation

Irony.Interpreter.Ast.AstNode.AstNode ( )

Definition at line 39 of file AstNode.cs.

Member Function Documentation

virtual void Irony.Interpreter.Ast.AstNode.AcceptVisitor ( IAstVisitor  visitor)
virtual

Implements Irony.Parsing.IVisitableNode.

Definition at line 140 of file AstNode.cs.

AstNode Irony.Interpreter.Ast.AstNode.AddChild ( string  role,
ParseTreeNode  childParseNode 
)
protected
virtual void Irony.Interpreter.Ast.AstNode.Evaluate ( EvaluationContext  context,
AstMode  mode 
)
virtual

Implements Irony.Interpreter.Ast.IInterpretedAstNode.

Reimplemented in Irony.Interpreter.Ast.NullNode.

Definition at line 59 of file AstNode.cs.

bool Irony.Interpreter.Ast.AstNode.FlagIsSet ( AstNodeFlags  flag)

Definition at line 124 of file AstNode.cs.

IEnumerable<AstNode> Irony.Interpreter.Ast.AstNode.GetAll ( )

Definition at line 149 of file AstNode.cs.

virtual System.Collections.IEnumerable Irony.Interpreter.Ast.AstNode.GetChildNodes ( )
virtual

Implements Irony.Parsing.IBrowsableAstNode.

Definition at line 78 of file AstNode.cs.

virtual SourceLocation Irony.Interpreter.Ast.AstNode.GetErrorAnchor ( )
virtual

Implements Irony.Interpreter.Ast.IInterpretedAstNode.

Definition at line 69 of file AstNode.cs.

void Irony.Interpreter.Ast.AstNode.InvalidAstMode ( string  mode)
protected

Definition at line 134 of file AstNode.cs.

References Irony.Resources.ErrInvalidAstMode.

void Irony.Interpreter.Ast.AstNode.SetParent ( AstNode  parent)

Definition at line 120 of file AstNode.cs.

override string Irony.Interpreter.Ast.AstNode.ToString ( )

Definition at line 130 of file AstNode.cs.

Member Data Documentation

readonly AstNodeList Irony.Interpreter.Ast.AstNode.ChildNodes = new AstNodeList()

Definition at line 104 of file AstNode.cs.

SourceLocation Irony.Interpreter.Ast.AstNode.ErrorAnchor
protected

Definition at line 96 of file AstNode.cs.

NodeEvaluate Irony.Interpreter.Ast.AstNode.EvaluateRef
protected

Definition at line 37 of file AstNode.cs.

AstNodeFlags Irony.Interpreter.Ast.AstNode.Flags

Definition at line 90 of file AstNode.cs.

AstNode Irony.Interpreter.Ast.AstNode.Parent

Definition at line 87 of file AstNode.cs.

string Irony.Interpreter.Ast.AstNode.Role

Definition at line 99 of file AstNode.cs.

SourceSpan Irony.Interpreter.Ast.AstNode.Span

Definition at line 89 of file AstNode.cs.

BnfTerm Irony.Interpreter.Ast.AstNode.Term

Definition at line 88 of file AstNode.cs.

Property Documentation

string Irony.Interpreter.Ast.AstNode.AsString
getset

Definition at line 101 of file AstNode.cs.

SourceLocation Irony.Interpreter.Ast.AstNode.Location
get

Definition at line 81 of file AstNode.cs.


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