After block alternative not working correctly
Status: Pre-Alpha
Brought to you by:
ciraci
loadgrammar('grammars/JavaEasy.g','Java',J),loadgrammar('grammars/SqlEasy.g','Sql',S),rule(J,'memberDecl',MEM),rule(S,'sql_stmt_core',DROP),"+
"body(MEM,B),body(DROP,DB),alternative(DB,2,A),"+
"afterModification(B,J,A,S),writegrammar('grammars/deneme.g',J)
output:
memberDecl
:fieldDeclaration
|methodDeclaration
|classDeclaration
|interfaceDeclaration detach_stmt
;
should be
memberDecl
:(fieldDeclaration
|methodDeclaration
|classDeclaration
|interfaceDeclaration) detach_stmt
;