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