Exemple #1
0
	static bool GroupIsActive(Racr.AstNode n) {
		var v = n.GetExpression().Value();
		if (v == null) return false;
		return (bool) v;
	}
Exemple #2
0
	static bool GroupIsLValid(Racr.AstNode n) { return n.GetExpression().Type() == ValueTypes.Boolean; }
Exemple #3
0
	static string ComputedQuestionSExpr(Racr.AstNode n) {
		return "(~? '" + n.GetName() + " " + Lexer.EscapeString(n.GetLabel()) + " " + n.GetExpression().SExpr() + ")";
	}
Exemple #4
0
	static string GroupSExpr(Racr.AstNode n) {
		return "(If " + n.GetExpression().SExpr() + " " + String.Join(" ", n.GetBody().Children().Select(x => ((Racr.AstNode)x).SExpr())) + ")";
	}
Exemple #5
0
	static object ComputedQuestionValue(Racr.AstNode n) { return n.GetExpression().Value(); }
Exemple #6
0
	static ValueTypes ComputedQuestionType(Racr.AstNode n) { return n.GetExpression().Type(); }