HomePhorge

(#7762) In DSL allow UNLESS as replacement for IF NOT
8ac17977f0f1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#7762) In DSL allow UNLESS as replacement for IF NOT

Add support to DSL for UNLESS.
Add support for two cases of UNLESS:

unless <condition> { <statements> }
unless <condition> { }

Proxy UNLESS in AST to IF, wrapping condition an (additional) NOT

Add tests to ensure that AST::Not gets added tree in "unless false {
$var = 1 }"
Add tests to ensure that no exception raised for "unless false { }"

Details

Provenance
Jeff Weiss <jeff.a.weiss@gmail.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7630671ec38d: Merge branch 'bug/master/11860-LANG-environment-var'
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff Weiss <jeff.a.weiss@gmail.com> committed rPU8ac17977f0f1: (#7762) In DSL allow UNLESS as replacement for IF NOT (authored by Jeff Weiss <jeff.a.weiss@gmail.com>).Jan 29 2012, 9:10 AM