]> git.saurik.com Git - bison.git/commitdiff
* src/reader.c (parse_skel_decl): New.
authorMarc Autret <autret_m@epita.fr>
Thu, 30 Aug 2001 00:41:37 +0000 (00:41 +0000)
committerMarc Autret <autret_m@epita.fr>
Thu, 30 Aug 2001 00:41:37 +0000 (00:41 +0000)
(read_declarations): Add case `tok_skel', call parse_skel_decl ().
* src/lex.h (token_t): New token `tok_skel'.
* src/lex.c (percent_table): Add skeleton option entry.
Standardize.

ChangeLog
src/lex.c
src/lex.h
src/reader.c

index d35daa297dedfb9666b694d07c60f6ca9d939a1d..0c8507e78714acec40701d5241357552bc160599 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-08-29  Marc Autret  <autret_m@epita.fr>
+
+       * src/reader.c (parse_skel_decl): New.
+       (read_declarations): Add case `tok_skel', call parse_skel_decl (). 
+       * src/lex.h (token_t): New token `tok_skel'.
+       * src/lex.c (percent_table): Add skeleton option entry.
+       Standardize.
+
 2001-08-29  Marc Autret  <autret_m@epita.fr>
 
        * src/bison.simple: Add %%user_code directive at the end.
index 3df36a6584769086b4ed0f0a3f3f79444de1ae9b..8241fbc8076a5806d431c999e397da2f6ddba43e 100644 (file)
--- a/src/lex.c
+++ b/src/lex.c
@@ -552,11 +552,12 @@ struct percent_table_struct percent_table[] =
   { "file_prefix",     &spec_file_prefix,      tok_setopt },   /* -b */
   { "name_prefix",     &spec_name_prefix,      tok_setopt },   /* -p */
 #endif
-  { "header_extension",        NULL,                   tok_hdrext},
-  { "source_extension",        NULL,                   tok_srcext},
+  { "header_extension",        NULL,                   tok_hdrext },
+  { "source_extension",        NULL,                   tok_srcext },
   { "define",          NULL,                   tok_define },
   { "verbose",         &verbose_flag,          tok_noop },     /* -v */
   { "debug",           &debug_flag,            tok_noop },     /* -t */
+  { "skeleton",                NULL,                   tok_skel },     /* -S */
   { "semantic_parser", &semantic_parser,       tok_noop },
   { "pure_parser",     &pure_parser,           tok_noop },
 
index e5d63882beb6728c54d2196e70a69ff9503b6196..8721e9a883ece9cd447df1fe9808486b1e777f5a 100644 (file)
--- a/src/lex.h
+++ b/src/lex.h
@@ -50,6 +50,7 @@ typedef enum token_e
     tok_hdrext,
     tok_srcext,
     tok_define,
+    tok_skel,
     tok_noop,
     tok_setopt,
     tok_illegal,
index 8fa3dfe833cd10e38e5b1774c5950d17d3f2df16..d7145da7699fe49fccd1799ad5e24ed3c9ca7592 100644 (file)
@@ -941,6 +941,17 @@ parse_macro_decl (void)
   macro_insert (macro_key, macro_value);
 }
 
+
+/*----------------------------------.
+| Parse what comes after %skeleton. |
+`----------------------------------*/
+
+void
+parse_skel_decl (void)
+{
+  /* Complete with parse_dquoted_param () on the CVS branch 1.29.  */
+}
+
 /*------------------------------------------.
 | Parse what comes after %header_extension. |
 `------------------------------------------*/
@@ -1051,6 +1062,10 @@ read_declarations (void)
            case tok_define:
              parse_macro_decl ();
              break;
+             
+           case tok_skel:
+             parse_skel_decl ();
+             break;
 
            case tok_noop:
              break;