Difference between revisions of "The Latex to LSC Compiler"

From WeizmannWiki
Jump to: navigation, search
Line 23: Line 23:
  
 
= Latex Con-LSC =
 
= Latex Con-LSC =
 +
 +
== The Latex Con-LSC Language ==
 +
<div>We developed a dedicated package that&nbsp;</div><div>allows to easily create diagrams and present them graphically, with a simple textual notation.</div><div>The package, called \textit{pgf-playgo-lsc}, is built upon the pgf~\cite{pgf} and&nbsp;</div><div>pgf-uml~\cite{pgf-umlsd} packages. All the diagrams in this paper were created with this tool.&nbsp;</div><div>To allow the execution of our models, we have also created a pre-processing compiler from&nbsp;</div><div>pgf-playgo-lsc models to PlayGo LSC called \textit{Latex2PlayGo}. The \LaTeX\ package&nbsp;</div><div>as well as the Latex2PlayGo Compiler and examples can be found at&nbsp;</div><div>\url{http://wiki.weizmann.ac.il/playgo/index.php/The_Latex_to_LSC_Compiler}.</div>
 +
The Latex2LSC compiler is designed to be a&nbsp;proof-of-concept tool for Con-LSC executability.
 +
 +
Therefore the supported LSC idioms in Latex Con-LSC is only a subset of the PlayGo LSC idioms.
 +
 +
The complete list of the supported idoms in Latex Con-LSC is given in the Latex [http://www Con-LSC package].

Revision as of 08:47, 18 May 2017

This page explains how to write Contextul LSCs (Con-LSC) in Latex, compile them into PlayGo LSC instances, and finally execute them.

In nutshell, these are the required steps:

  1. Download the PlayGo Environment.
  2. Add Latex Con-LSCs to LSC.tex.
  3. Execute the Latex2PlayGo compiler.
  4. Import the compiled file in PlayGo and execute it.

The PlayGo Environment

First you need to download (here) a PlayGo version that includes a template project and the Latex2PlayGo compiler.

After extracting the zip file you will find the following directory structure (the structure includes only directories relevant to this tutorial). Directories are marked with (D) and files with (F):

(D) PlayGo_4.0_19042017
|
(D) playgo
|
(F) playgo.exe
(D) workspace
|
(D) Latex2Lsc
|
(F) LSC.tex
(F) GeneratedLSC.lsc
(D) src
|
(F) Latex2PlayGoCompiler.java


Executin playgo.exe will start PlayGo.

General links:

PlayGo userguide.

PlayGo homepage - more information and tutorials.

Latex Con-LSC

The Latex Con-LSC Language

We developed a dedicated package that 
allows to easily create diagrams and present them graphically, with a simple textual notation.
The package, called \textit{pgf-playgo-lsc}, is built upon the pgf~\cite{pgf} and 
pgf-uml~\cite{pgf-umlsd} packages. All the diagrams in this paper were created with this tool. 
To allow the execution of our models, we have also created a pre-processing compiler from 
pgf-playgo-lsc models to PlayGo LSC called \textit{Latex2PlayGo}. The \LaTeX\ package 
as well as the Latex2PlayGo Compiler and examples can be found at 

The Latex2LSC compiler is designed to be a proof-of-concept tool for Con-LSC executability.

Therefore the supported LSC idioms in Latex Con-LSC is only a subset of the PlayGo LSC idioms.

The complete list of the supported idoms in Latex Con-LSC is given in the Latex Con-LSC package.