Пример #1
0
 /// <summary>
 /// Disposes this enumerator
 /// </summary>
 public void Dispose()
 {
     ast = null;
 }
Пример #2
0
 /// <summary>
 /// Initializes this result as a success with the given AST
 /// </summary>
 /// <param name="errors">The list of errors</param>
 /// <param name="text">The parsed text</param>
 /// <param name="ast">The produced AST</param>
 internal ParseResult(ROList <ParseError> errors, Text text, AST ast)
 {
     this.errors = errors;
     this.text   = text;
     this.ast    = ast;
 }
Пример #3
0
 /// <summary>
 /// Initializes this family
 /// </summary>
 /// <param name="tree">The parent parse tree</param>
 /// <param name="parent">The index of the parent node in the parse tree</param>
 internal ASTFamily(AST tree, int parent)
 {
     this.tree   = tree;
     this.parent = parent;
 }