Changeset 260


Ignore:
Timestamp:
Mar 23, 2007, 11:20:47 PM (18 years ago)
Author:
cinc
Message:

Started work on an IDL compiler

Location:
trunk/idl-compiler
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/Makefile

    r259 r260  
    3131                        $(OBJDIR)/interface_parser.o \
    3232                        $(OBJDIR)/classversion_parser.o \
     33                        $(OBJDIR)/override_parser.o \
    3334                        $(OBJDIR)/printdata.o
    3435
  • trunk/idl-compiler/c/nom-idl-compiler.c

    r259 r260  
    8686
    8787
    88 
    89 /*
    90   Parse the class version. Note that the identifier is the current symbol..
    91 
    92   OM:= IDL_SYMBOL_OVERRIDE '(' IDENT ')' ';'
    93  */
    94 void parseOverrideMethod(void)
    95 {
    96   GTokenValue value;
    97   POVERMETHOD pOMethod=g_malloc0(sizeof(OVERMETHOD));
    98 
    99   if(!matchNext('('))
    100     {
    101       getNextToken(); /* Make sure error references the correct token */
    102       g_scanner_unexp_token(gScanner,
    103                             '(',
    104                             NULL,
    105                             NULL,
    106                             NULL,
    107                             "Error in NOMOVERRIDE()",
    108                             TRUE); /* is_error */
    109       exit(1);
    110     }
    111 
    112   if(!matchNext(G_TOKEN_IDENTIFIER))
    113     {
    114       getNextToken(); /* Make sure error references the correct token */
    115       g_scanner_unexp_token(gScanner,
    116                             G_TOKEN_IDENTIFIER,
    117                             NULL,
    118                             NULL,
    119                             NULL,
    120                             "Error in NOMOVERRIDE()",
    121                             TRUE); /* is_error */
    122       exit(1);
    123     }
    124   value=gScanner->value;
    125   pOMethod->chrName=g_strdup(value.v_identifier);
    126 
    127   if(!matchNext(')'))
    128     {
    129       getNextToken(); /* Make sure error references the correct token */
    130       g_scanner_unexp_token(gScanner,
    131                             ')',
    132                             NULL,
    133                             NULL,
    134                             NULL,
    135                             "Error in NOMOVERRIDE()",
    136                             TRUE); /* is_error */
    137       exit(1);
    138     }
    139   if(!matchNext(';'))
    140     {
    141       getNextToken(); /* Make sure error references the correct token */
    142       g_scanner_unexp_token(gScanner,
    143                             ';',
    144                             NULL,
    145                             NULL,
    146                             NULL,
    147                             "Error in NOMOVERRIDE()",
    148                             TRUE); /* is_error */
    149       exit(1);
    150     }
    151   g_ptr_array_add(pCurInterface->pOverrideArray, (gpointer) pOMethod);
    152 }
    153 
    15488gchar* getTypeSpecStringFromCurToken(void)
    15589{
     
    177111}
    178112
    179 
    180 
    181 
     113void parseIt()
     114{
     115
     116}
    182117
    183118
  • trunk/idl-compiler/include/parser.h

    r259 r260  
    1616* The Initial Developer of the Original Code is
    1717* netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>.
    18 * Portions created by the Initial Developer are Copyright (C) 2005-2007
     18* Portions created by the Initial Developer are Copyright (C) 2007
    1919* the Initial Developer. All Rights Reserved.
    2020*
     
    142142void parseInterface(GTokenType token);
    143143void parseClassVersion(void);
    144 
    145144void parseClassVersion(void);
    146145void parseOverrideMethod(void);
Note: See TracChangeset for help on using the changeset viewer.