1
/*******************************************************************************
2
* Copyright (c) 2006, 2008 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.dom.lrparser;
13
import org.eclipse.cdt.core.parser.IToken;
16
* Maps tokens returned by CPreprocessor to the corresponding
17
* token kind used by an LPG based parser.
21
public interface IDOMTokenMap {
24
* Returns the LPG token kind for the given DOM token.
25
* @throws NullPointerException if token is null
27
int mapKind(IToken token);
30
* Returns the LPG token type for End Of File (TK_EOF_TOKEN) token.
32
int getEOFTokenKind();
35
* Returns the LPG token type for End Of Completion (TK_EndOfCompletion) token.
37
int getEOCTokenKind();