PNPRO.js
Assuming you have a string with the contents of a .PNPRO
file in xmlDocument
,
let parse = require('@statebox/pnpro.js')
let result = parse(xmlDocument)
Output format for parse
:
title
: project title, stringnets
: array of nets
name
: net nameplaces
: array of places
name
: place name/identifierx
, y
: screen coordinatesmarking
: nr of tokens in this place (initial marking)
transitions
: array of transitions
name
: transition namepre
, post
: dictionary of in/out arcs, place name => weightx
,y
: screen coordinates
nll
: list of pairs of list of place indicesnbpt
: zero padded version of the nll
list