Opened 11 years ago

Closed 9 years ago

#600 closed defect (duplicate)

Numeric expressions of scalars require white space

Reported by: Piero Campalani Owned by: Alex Dumitru
Priority: major Milestone: Future
Component: petascope Version: development
Keywords: expressions scalar white space Cc: mantovani@…, Vlad Merticariu, Alex Dumitru
Complexity: Medium

Description

When writing math expressions between scalars, the parser requires a white space between the operands and the operator(s).

This does not happen when coverage expressions are involved (eg see alternative e in the example below).

for c in (eobstest)
return encode (
    coverage histogram
    over     $i x(0:9)  
a)  values   9999+1        <- ERROR
b)  values   9999 + 1      <- OK
c)  values   9999 > 1+1    <- ERROR
d)  values   9999 > 1 + 1  <- OK
e)  values   max(c)+1      <- OK
, "csv")

#ERROR (log): line 3:11 no viable alternative at input 'histogram'

Change History (3)

comment:1 by Piero Campalani, 11 years ago

Cc: Vlad Merticariu Alex Dumitru added

comment:2 by Dimitar Misev, 9 years ago

Owner: changed from Piero Campalani to Alex Dumitru
Status: newassigned

comment:3 by Bang Pham Huu, 9 years ago

Resolution: duplicate
Status: assignedclosed

I think this ticket is duplicate with this older http://rasdaman.org/ticket/406, so will close it here.

Note: See TracTickets for help on using tickets.