bintools/rcomp/inc/Parser.h
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PARSER_H_
       
    20 #define PARSER_H_
       
    21 
       
    22 // Extra types for YACC parser.
       
    23 
       
    24 struct RlsValue;
       
    25 
       
    26 enum TRlsCardinality { ERlsCardinalitySingle, ERlsCardinalityMultiple };
       
    27 enum TRlsType { ERlsString, ERlsString8,
       
    28 	ERlsByte, ERlsWord, ERlsLong, ERlsDouble,
       
    29 	// The ...Char types are normal types declared as character literals
       
    30 	ERlsByteChar, ERlsWordChar, ERlsLongChar,
       
    31 	// rls_string declaring a character is no longer allowed: included for
       
    32 	// backwards compatibility.
       
    33 	ERlsStringChar };
       
    34 
       
    35 // rls item length and cardinality.
       
    36 struct TRlsQualifiers
       
    37 	{
       
    38 	TRlsCardinality iCardinality;
       
    39 	unsigned long iMaxLength;
       
    40 	};
       
    41 
       
    42 // Value type when the value might have come from an rls item.
       
    43 struct TValueMaybeRls
       
    44 	{
       
    45 	char iString[1024*8];
       
    46 	// RlsValue if it did come from an rls item, 0 if it did not.
       
    47 	const RlsValue* iRlsSource;
       
    48 	};
       
    49 
       
    50 #endif