Main Page Modules Class Hierarchy Compound List File List Compound Members

# nedgrammar.h

    00001 /***************************************************/
    00002 /*  File: nedgrammar.h                             */
    00003 /*                                                 */
    00004 /*  Part of OMNeT++                                */
    00005 /*                                                 */
    00006 /*  Contents:                                      */
    00007 /*    declarations shared by ned.lex and ned.y     */
    00008 /*                                                 */
    00009 /***************************************************/
    00010
    00011 /*--------------------------------------------------------------*
    00012   Copyright (C) 2002-2003 Andras Varga
    00013
    00014   This file is distributed WITHOUT ANY WARRANTY. See the file
    00015   `license' for details on this and other legal matters.
    00016 *--------------------------------------------------------------*/
    00017
    00018 #ifndef __NEDGRAMMAR_H
    00019 #define __NEDGRAMMAR_H
    00020
    00021 class NEDElement;
    00022 class NedFileNode;
    00023 class NEDParser;
    00024 #define YYSTYPE   NEDElement*
    00025
    00026 #ifndef YYLTYPE
    00027 struct my_yyltype {
    00028    int dumy;
    00029    int first_line, first_column;
    00030    int last_line, last_column;
    00031    char *text;
    00032 };
    00033 #define YYLTYPE  struct my_yyltype
    00034 #else
    00035 #error 'YYLTYPE defined before ebnf.h -- type clash?'
    00036 #endif
    00037
    00038 typedef struct {int li; int co;} LineColumn;
    00039
    00040 extern LineColumn pos,prevpos;
    00041
    00042 extern FILE *yyin;
    00043 extern FILE *yyout;
    00044
    00045 struct yy_buffer_state;
    00046
    00047 struct yy_buffer_state *yy_scan_string(const char *str);
    00048 void yy_delete_buffer(struct yy_buffer_state *);
    00049
    00050 int runparse (NEDParser *p,NedFileNode *nf,bool parseexpr, const char *sourcefname);
    00051
    00052 extern int use_chanattrname_token;
    00053
    00054 #endif
    00055
    00056
    00057