% this is a comment line
% sample input for P-system simulator
a
b
c
c'
e
% explanation: one symbol per line, no spaces allowed in symbol name
S: A B
A: C
% explanation:
% membrane structure: one line per membrane
% (skin) membrane S contains membranes A and B
% membrane A contains membrane C
% the first membrane mentioned (here: S) is assumed to be the skin
S:
a b -> e[out]
A:
a c -> c a[out]
B:
c' b -> c' b[out]
C:
c -> c' c'[out]
c' ->
% explanation:
% one section per membrane
% one rule per line
% "c' -> " means that c' simply disappears
S:
A:
300*a
c
B:
200*b
C:
2*c
% explanation:
% initial state
% one section per membrane
% one line per symbol, sequence may be arbitrary
% support use notation k*a for k copies of a, "a" = "1*a"