Add petrinet language

This commit is contained in:
Joeri Exelmans 2024-11-21 12:10:28 +01:00
parent dd7a0536c9
commit 5240c7e21a
12 changed files with 137 additions and 7 deletions

View file

@ -0,0 +1,13 @@
# A place with no tokens:
p:RAM_Place
ps:RAM_PlaceState {
RAM_numTokens = `get_value(this) == 0`;
}
:RAM_of (ps -> p)
# An incoming arc from that place to our transition:
t:RAM_Transition
:RAM_arc (p -> t)