[Ur] Functional infix operators ?

Gabriel Riba griba2001 at gmail.com
Sat Feb 21 11:44:50 EST 2015


Gabriel Riba <griba2001 <at> gmail.com> writes:

> 
> * at the eexp production (eexp : ....) add the following case
> 
>        | eexp BACKTICK path BACKTICK eapps (let
> 
>                         val e = (EVar (#1 path, #2 path, Infer)
>                                 , s (pathleft, pathright))
> 
>                         val e = (EApp (e, eexp), s (eexpleft, pathright))
>                       in
>                         (EApp (e, eapps), s (eexpleft, etermright))
>                       end)
> 

Correction (etermright should be  eappsright):

* at the eexp production (eexp : ....) add the following case

       | eexp BACKTICK path BACKTICK eapps (let

                        val e = (EVar (#1 path, #2 path, Infer)
                                , s (pathleft, pathright))

                        val e = (EApp (e, eexp), s (eexpleft, pathright))
                      in
                        (EApp (e, eapps), s (eexpleft, eappsright))
                      end)





More information about the Ur mailing list