Skip to content

Commit

Permalink
Remove the 'MakeFrame' operator
Browse files Browse the repository at this point in the history
  • Loading branch information
will62794 authored and lemmy committed Sep 5, 2019
1 parent ffe0dc1 commit 6d23855
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions modules/SVG.tla
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ LOCAL SVGElem(_name, _attrs, _children, _innerText) ==
children |-> _children,
innerText |-> _innerText ]

SVGElemToString(elem) ==
(**************************************************************************)
(* Convert an SVG element record into its string representation. *)
(* *)
(* This operator is expected to be replaced by a Java module override. *)
(* We do not implement it in pure TLA+ because doing non-trivial string *)
(* manipulation in TLA+ is tedious. Also, the performance of *)
(* implementing this in TLA+ has been demonstrated to be prohibitively *)
(* slow. *)
(**************************************************************************)
TRUE

(******************************************************************************)
(* *)
(* Core Graphic Elements. *)
Expand Down Expand Up @@ -110,13 +98,17 @@ Group(children, attrs) ==
(* contained in this group. *)
(**************************************************************************)
SVGElem("g", attrs, children, "")

MakeFrame(elem) ==
(******************************************************************************)
(* Builds a single frame for part of a sequence of animation frames. This is *)
(* an SVG group element that contains identifying information about the *)
(* frame. *)
(******************************************************************************)
SVGElemToString(Group(<<elem>>, [class |-> "tlaframe"]))

SVGElemToString(elem) ==
(**************************************************************************)
(* Convert an SVG element record into its string representation. *)
(* *)
(* This operator is expected to be replaced by a Java module override. *)
(* We do not implement it in pure TLA+ because doing non-trivial string *)
(* manipulation in TLA+ is tedious. Also, the performance of *)
(* implementing this in TLA+ has been demonstrated to be prohibitively *)
(* slow. *)
(**************************************************************************)
TRUE

=============================================================================

0 comments on commit 6d23855

Please sign in to comment.