Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/codegen/print-as-cxx.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/codegen/print-as-cxx.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3892, Sat May 21 17:08:42 2016 UTC revision 3893, Sat May 21 21:33:08 2016 UTC
# Line 352  Line 352 
352                    | CL.E_Subscript(e1, e2) => (ppExp e1; str "["; ppExp e2; str "]")                    | CL.E_Subscript(e1, e2) => (ppExp e1; str "["; ppExp e2; str "]")
353                    | CL.E_Select(e, f) => (ppExp e; str "."; str f)                    | CL.E_Select(e, f) => (ppExp e; str "."; str f)
354                    | CL.E_Indirect(e, f) => (ppExp e; str "->"; str f)                    | CL.E_Indirect(e, f) => (ppExp e; str "->"; str f)
355                    | CL.E_Cast(ty, e) => (                    | CL.E_Cast(ty, e) => (str "("; ppTy(ty, NONE); str ")"; ppExp e)
356                        str "static_cast<"; ppTy(ty, NONE); str ">("; ppExp e; str ")")                    | CL.E_XCast(c, ty, e) => (str c; ppTy(ty, NONE); str ">("; ppExp e; str ")")
357                    | CL.E_Vec(ty, args) => (                    | CL.E_Vec(ty, args) => (
358                      (* GCC vector syntax: "__extension__ (ty){a, b, ...}" *)                      (* GCC vector syntax: "__extension__ (ty){a, b, ...}" *)
359                        str "__extension__"; sp(); str "("; ppTy(ty, NONE); str ")";                        str "__extension__"; sp(); str "("; ppTy(ty, NONE); str ")";

Legend:
Removed from v.3892  
changed lines
  Added in v.3893

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0