Skip to main content
summaryrefslogtreecommitdiffstats
blob: 321a81ccde37996ab438009ea7ed64a094808e7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*******************************************************************************
 * Copyright (c) 2006, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.internal.core.dom.lrparser.symboltable;

/**
 * The C language has 4 namespaces for identifiers.
 * This enum represents three of them, the "member" namespace 
 * is represented by IStructure.getFields().
 * 
 * The symbol table uses these to mark identifiers and keep
 * the namespaces separate.
 * 
 * @author Mike Kucera
 */
public enum CNamespace {

	GOTO_LABEL, // goto labels
	STRUCT_TAG,// structs, unions, enums
	IDENTIFIER; // all other identifiers

}

Back to the top