Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata/promela
20
lexers/testdata/promela/calc.actual
vendored
Normal file
20
lexers/testdata/promela/calc.actual
vendored
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue