Added lexars

This commit is contained in:
Toastie 2025-03-22 20:46:00 +13:00
parent 382b2ce94b
commit f9f64b0558
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
820 changed files with 149371 additions and 0 deletions
lexers/testdata/promela

20
lexers/testdata/promela/calc.actual vendored Normal file
View file

@ -0,0 +1,20 @@
// reverse polish
mtype = { operator, value }
chan f = [12] of { mtype, int }
proctype calc(chan you)
{ int s, lft, rgt
chan me = [0] of { int }
if
:: f?operator(s)
run calc(me); me?lft
run calc(me); me?rgt
if
:: s == '+' -> you!(lft+rgt)
fi
:: f?value(s) -> you!s
fi
}