Skip to content

Commit 27ad217

Browse files
frozencemeterysimo5
authored andcommitted
Fix type/token distinction in parser.y
Bison complains that, for yacc compliance, %type is for nonterminals. Resolves: #236 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
1 parent 45fa4f2 commit 27ad217

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/parser.y

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ static char *b64_enc(const char *val, size_t len);
4040
%token EQUAL
4141
%token EQUALBIN
4242
%token AST
43-
%token STRING
44-
%token INT
4543

46-
%type <sval> STRING
47-
%type <ival> INT rule rule_start requiredkv
44+
%token <sval> STRING
45+
%token <ival> INT
46+
%type <ival> rule rule_start requiredkv
4847

4948
%parse-param {const char **keys} {const char **vals} {int *status}
5049

0 commit comments

Comments
 (0)