I would like to create a parser for process algebra. The process algorithm has this syntax:
System=P:[s,l]|(P:[s,l']|P:[s,l])\{a,b}
How can I check if a line instruction should follow this syntax ??? Some pseudo code will be very useful.
source share