modules/rpsl/members_is.y

/* [<][>]
[^][v][top][bottom][index][help] */

FUNCTIONS

This source file includes following functions.
  1. yyparse
  2. members_iserror

   1 %{
   2 /*
   3   filename: members_is.y
   4 
   5   description:
   6     Defines the grammar for an RPSL members_is attribute.
   7 
   8   notes:
   9     Defines tokens for the associated lexer, members_is.l.
  10 */
  11 
  12 /******************
  13   Copyright (c) 2002                                        RIPE NCC
  14 
  15   All Rights Reserved
  16 
  17   Permission to use, copy, modify, and distribute this software and its
  18   documentation for any purpose and without fee is hereby granted,
  19   provided that the above copyright notice appear in all copies and that
  20   both that copyright notice and this permission notice appear in
  21   supporting documentation, and that the name of the author not be
  22   used in advertising or publicity pertaining to distribution of the
  23   software without specific, written prior permission.
  24 
  25   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  26   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
  27   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  28   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  29   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  30   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  31   ***************************************/
  32 
  33 #include <stdlib.h>
  34 
  35 int yyerror(const char *s);
  36 %}
  37 
  38 %token TKN_IPV4 TKN_RTRSNAME TKN_DOMAIN
  39 
  40 %%
     /* [<][>][^][v][top][bottom][index][help] */
  41 
  42 members_is: members_is ',' members_item
  43 | members_item
  44 ;
  45 
  46 members_item: TKN_IPV4
  47 | TKN_DOMAIN
  48 | TKN_RTRSNAME
  49 ;
  50 
  51 %%
  52 
  53 #undef members_iserror
  54 #undef yyerror
  55 
  56 int
  57 members_iserror (const char *s)
     /* [<][>][^][v][top][bottom][index][help] */
  58 {
  59     yyerror(s);
  60     return 0;
  61 }
  62 

/* [<][>][^][v][top][bottom][index][help] */