diff --git a/old_parser/fun_with_bison/ielr_grammar.y b/old_parser/fun_with_bison/ielr_grammar.y old mode 100644 new mode 100755 index 9e7908d9a7a68321330b21c77574b619603c406e..cc6b972a3fed8a8eb7dc44627950b4a7a120e38e --- a/old_parser/fun_with_bison/ielr_grammar.y +++ b/old_parser/fun_with_bison/ielr_grammar.y @@ -2,17 +2,30 @@ %define lr.default-reduction accepting /* BISON Declarations */ -%left SMALL_A +%token SMALL_A + + %token SMALL_B +%token SMALL_C +%token SMALL_D +%token SMALL_E + + /* Grammar follows */ %% -BIG_S: SMALL_A BIG_A SMALL_A - | SMALL_B BIG_A SMALL_B +BIG_S: SMALL_B BIG_A + | SMALL_C BIG_A + | SMALL_D BIG_APRIME + | SMALL_E BIG_APRIME + BIG_A: SMALL_A | SMALL_A SMALL_A +BIG_APRIME: SMALL_A + | SMALL_A SMALL_A + %% \ No newline at end of file