Change in mom[master]: Make the policy language more lisp like

agl at us.ibm.com agl at us.ibm.com
Tue Nov 12 18:37:44 UTC 2013


Adam Litke has submitted this change and it was merged.

Change subject: Make the policy language more lisp like
......................................................................


Make the policy language more lisp like

This patch adds:

(defun name (vars..) body)
(setq name value)

It also changes (defvar ..) to define the variable
only once. If the current scope already contains the
name, the value stays unchanged.

Another change was made to (let ..). It now accepts
multiple statements to evaluate in the form of:

(let (vars) expr1 expr2 ...)

Change-Id: I1268df51d730f8128e600b78cf9cc77ed983f7c6
Signed-off-by: Martin Sivak <msivak at redhat.com>
Reviewed-on: http://gerrit.ovirt.org/21137
Reviewed-by: Adam Litke <agl at us.ibm.com>
---
M mom/Policy/Parser.py
M tests/ParserTests.py
2 files changed, 82 insertions(+), 17 deletions(-)

Approvals:
  Adam Litke: Looks good to me, approved
  Martin Sivák: Verified



-- 
To view, visit http://gerrit.ovirt.org/21137
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1268df51d730f8128e600b78cf9cc77ed983f7c6
Gerrit-PatchSet: 6
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Adam Litke <agl at us.ibm.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>



More information about the Engine-commits mailing list