mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-11-08 15:13:42 +01:00
Solves #7 : intrinsic ALL() in ASSERT()
This commit is contained in:
parent
73da2b3cff
commit
e7f9ec3075
@ -514,7 +514,11 @@ def irp_simple_statements(text):
|
||||
if match is not None:
|
||||
matches = [ match.group(1).strip(), match.group(3).strip() ]
|
||||
for m in matches:
|
||||
if not(m.isdigit() or ("'" in m) or (m == "")):
|
||||
ok = m != "" # not empty
|
||||
ok = ok and not m.isdigit() # not a digit
|
||||
ok = ok and "'" not in m # not a string
|
||||
ok = ok and m.count('(') == m.count(')') # balanced parenthesis
|
||||
if ok:
|
||||
result.append ( Simple_line (line.i, " print *, '%s = ', %s"%(m,m), line.filename) )
|
||||
result.append ( Simple_line (line.i, " print *, ''", line.filename) )
|
||||
return result
|
||||
|
@ -1 +1 @@
|
||||
version = "1.6.8"
|
||||
version = "1.6.9"
|
||||
|
Loading…
Reference in New Issue
Block a user