Opened 4 years ago

Closed 20 months ago

#600 closed defect (duplicate)

Numeric expressions of scalars require white space

Reported by: pcampalani Owned by: mdumitru
Priority: major Milestone: Future
Component: petascope Version: development
Keywords: expressions scalar white space Cc: mantovani@…, vmerticariu, mdumitru
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 Changed 4 years ago by pcampalani

  • Cc vmerticariu mdumitru added

comment:2 Changed 22 months ago by dmisev

  • Owner changed from pcampalani to mdumitru
  • Status changed from new to assigned

comment:3 Changed 20 months ago by bphamhuu

  • Resolution set to duplicate
  • Status changed from assigned to closed

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.