I am working on a project and I have to create a parser for the following grammar:
grammar T;
I am trying to read this piece of code:
theory oo
begin
builtins: asymmetric-encryption
functions: f/1 // f/1 used for function in protocol
/* Channel rules */
rule ChanOut_S:
[Out_S($A,$B,xn,x)]
--[ChanOut_S($A,$B,xn,x)]->
[!Sec($A,$B,xn,x)]
I used to generate the parser tree using grun as follows:
grun T theory oo.spthy -gui
But every time I try to generate the parser tree I have the following error:
line 9:5 no viable alternative at input 'ruleC'
It seems the grammar has some problem but I am not able to figure it out. Do you have any clue?