From: DeaDDooMER Date: Sat, 14 Dec 2019 21:37:35 +0000 (+0300) Subject: expressions interpreted in lazy mode X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=f2367fdce1d3ed0d4caeabca10d83c8d2c03b43e;p=cpc.git expressions interpreted in lazy mode --- diff --git a/src/generic/Dev/Mod/CPR.cp b/src/generic/Dev/Mod/CPR.cp index 7791454..b3ef052 100644 --- a/src/generic/Dev/Mod/CPR.cp +++ b/src/generic/Dev/Mod/CPR.cp @@ -162,7 +162,7 @@ MODULE DevCPR; BEGIN Factor(x, use); WHILE sym = and DO - Get(sym); Factor(y, use); IF use THEN x := x & y END + Get(sym); Factor(y, use & x); IF use & x THEN x := x & y END END END Term; @@ -171,7 +171,7 @@ MODULE DevCPR; BEGIN Term(x, use); WHILE sym = or DO - Get(sym); Term(y, use); IF use THEN x := x OR y END + Get(sym); Term(y, use & ~x); IF use & ~x THEN x := x OR y END END END Expression;