Fixed bison warning

This commit is contained in:
Artur Meski
2018-02-17 20:53:04 +00:00
parent 83e48eb08d
commit 9b41161f82

View File

@@ -1,7 +1,7 @@
%skeleton "lalr1.cc" /* -*- C++ -*- */ %skeleton "lalr1.cc" /* -*- C++ -*- */
%require "2.5" %require "2.5"
%defines %defines
%define parser_class_name "rsin_parser" %define parser_class_name {rsin_parser}
%code requires { %code requires {
#include <string> #include <string>
@@ -83,6 +83,11 @@ system:
} }
; ;
/*
* -------------------------
* REACTIONS
* -------------------------
*/
reactions: reactions:
| reactions reaction SEMICOL | reactions reaction SEMICOL
; ;
@@ -131,6 +136,8 @@ reactionProduct: IDENTIFIER {
} }
; ;
/*******************************************/
initstates: initstates:
LCB initstate RCB { LCB initstate RCB {
driver.rs->commitInitState(); driver.rs->commitInitState();
@@ -151,6 +158,8 @@ entity: IDENTIFIER {
} }
; ;
/*******************************************/
actionentities: actionentities:
| actentity | actentity
| actionentities COMMA actentity | actionentities COMMA actentity