tlamode/org/Test.org
Christian Barthel 6d84767a52 handling of TLC config files
* lisp/tla+-mode.el: update URLs, remove
  unnecessary comments, cleanup whitespace and
  wrap lines.
  (tlc-widget-example): if a TLC cfg already
  exists, copy it to .old.<seconds>.  erase
  the buffer then and insert the new TLC
  config into the buffer.
  Add the current time to the tlc config.

  * org/Test.org: add an example org file.
  this shows the usage of org-babel-tangle in
  combination with TLA+ (it may be used to
  further comment on TLA+ specifications).
2020-08-03 05:11:09 +02:00

1.2 KiB

This is an Org file

TLA+ with Org

This is an attempt to combine Org-Mode Babel with TLA+.

Keyboard Shortcuts:

Keystroke Description
c-c c-t c SANY Syntactic Analyzer
c-c c-t e Export DVI
c-c c-t o Open DVI file
c-c c-t m run TLC model checker
c-c c-t p run PlusCal Translator

Modul1 with descriptions

uyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

  • Unordered List

    • a
    • b
  • Unordered

Use: org-babel-tangle to export the module above:

  ------------------- MODULE TestModul -----------------------
  EXTENDS Naturals
  VARIABLE hr
  ------------------------------------------------------------
  Init == hr \in (1..12)
  Next == hr' = IF hr = 12 THEN
		   1
		ELSE
		   hr + 1
  ------------------------------------------------------------
  Spec == Init /\ [][Next]_hr
  ============================================================
  \* Modification History
  \* Created Mon Aug  3 03:46:40 2020 by Christian Barthel