JuliaOpt / CoinOptServices.jl

Julia interface to COIN-OR Optimization Services https://projects.coin-or.org/OS
Other
16 stars 4 forks source link

Update for parsing changes on julia 0.5 #16

Closed mlubin closed 7 years ago

mlubin commented 8 years ago

Ref JuliaOpt/JuMP.jl#711 One-sided comparisons parse as :call expressions in Julia 0.5. JuMP follows the new syntax on 0.5 for expressions returned through the MPB interface.

Before:

julia> dump(:(x <= 1))
Expr 
  head: Symbol comparison
  args: Array(Any,(3,))
    1: Symbol x
    2: Symbol <=
    3: Int64 1
  typ: Any

After:

julia> dump(:(x <= 1))
Expr
  head: Symbol call
  args: Array(Any,(3,))
    1: Symbol <=
    2: Symbol x
    3: Int64 1
  typ: Any