[AgRule("GLookup", "Form", Context = "Body")] static Ast FormGLookup(Ast n, string name) { var ret = findL(name, n.Parent(), n.ChildIndex() - 1); return((ret != null) ? ret : n.ErrorQuestion()); }
static bool ElementIsErrorQuestion(Racr.AstNode n) { return(n == n.ErrorQuestion()); }
[AgRule("IsErrorQuestion", "Element")] static bool ElementIsErrorQuestion(Ast n) { return(n == n.ErrorQuestion()); }
static Racr.AstNode FromGLookup(Racr.AstNode n, string name) { var ret = findL(name, n.Parent(), n.ChildIndex() - 1); return((ret != null) ? ret : n.ErrorQuestion()); }