I am working on developing a Parser , I would like to check Yacc Syntax using Regular Expression. But It seems that it doesn't work out
// Yacc-like grammar specifications
// Ligne ::= Expr '\n' {printf("%d \n" , $1)}
// Expr : Exp '+' Terme {$$ = $1 + $3; } | Terme ;
// Terme : Terme '*' Facteur {$$ = $1 * $3; } | Facteur ;
// Facteur : '(' Expr ')' {$$ = $2; } | Chiffre ;
String YaccProdS = @"($$)+ [=] [$]+[0-9][^']([$]+[0-9])*";
Check = Regex.Match(Text,YaccProdS);