ZINC: a compiler for “any language”-coloured Petri nets
Résumé
We present ZINC, that is the code name for a complete rewrite of SNAKES [8,9], incorporating the compilation approach from Neco [4,5] at its heart. Doing so, ZINC allows to substantially extend SNAKES and Neco in various ways: efficient firing and statespace computation, Petri nets coloured by potentially any programming language, more general class of Petri nets supported. At its current state, ZINC allows to create Petri nets from a Python program, or to load them from a simple unified file format, then to compile nets targeting: Python [10], Go [6], and CoffeeScript [1] (the latter being compiled to JavaScript). This choice of statically and dynamically typed languages demonstrates the feasibility of supporting potentially any language as a colour domain. This paper presents what one can do using ZINC in this state, how this is implemented, and what is planned as future developments.
Origine : Fichiers produits par l'(les) auteur(s)
Loading...