allow multiple keywords on one line

This commit is contained in:
David Rose 2006-02-28 22:08:22 +00:00
parent ba74d9a772
commit 92291308eb
4 changed files with 3500 additions and 3518 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/* A Bison parser, made by GNU Bison 2.0. */
/* A Bison parser, made by GNU Bison 1.875b. */
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@ -264,11 +264,16 @@ typedef_decl:
;
keyword_decl:
KW_KEYWORD IDENTIFIER
KW_KEYWORD keyword_decl_list
;
keyword_decl_list:
empty
| keyword_decl_list IDENTIFIER
{
dc_file->add_keyword($2);
}
| KW_KEYWORD KEYWORD
| keyword_decl_list KEYWORD
{
// This keyword has already been defined. But since we are now
// explicitly defining it, clear its bitmask, so that we will have a